From: Ian Kelling Date: Mon, 20 Nov 2017 02:04:40 +0000 (-0500) Subject: misc bug fixes X-Git-Url: https://iankelling.org/git/?p=basic-https-conf;a=commitdiff_plain;h=1a4204b328a226284b26329e10518740837d84e5 misc bug fixes --- diff --git a/web-conf b/web-conf index 881c68d..61b735b 100755 --- a/web-conf +++ b/web-conf @@ -67,6 +67,7 @@ while true; do esac done +# t = type, h = host if (( ${#@} == 3 )); then read -r extra_settings t h <<<"${@}" else @@ -178,15 +179,16 @@ EOF a2enmod proxy proxy_http # fyi: trailing slash is important # reference: https://httpd.apache.org/docs/2.4/howto/reverse_proxy.html + # retry=0: https://stackoverflow.com/questions/683052/why-am-i-getting-an-apache-proxy-503-error cat >>$vhost_file <>$vhost_file </etc/apache2/conf-enabled/local-custom.conf <<'EOF' -# vhost_combined with %D (request time in microseconds) -# this file is just a convenient place to drop it. -LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\" %D" vhost_time_combined -SSLStaplingCache shmcb:/var/run/apache2/stapling_cache(128000) -EOF - echo "$0: creating $redir_file" cat >$redir_file < @@ -390,3 +385,10 @@ EOF service nginx restart fi ####### end if nginx + +cat >/etc/apache2/conf-enabled/local-custom.conf <<'EOF' +# vhost_combined with %D (request time in microseconds) +# this file is just a convenient place to drop it. +LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\" %D" vhost_time_combined +SSLStaplingCache shmcb:/var/run/apache2/stapling_cache(128000) +EOF