From 1a4204b328a226284b26329e10518740837d84e5 Mon Sep 17 00:00:00 2001 From: Ian Kelling Date: Sun, 19 Nov 2017 21:04:40 -0500 Subject: [PATCH] misc bug fixes --- web-conf | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) 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 -- 2.30.2