From: Ian Kelling Date: Wed, 28 Sep 2016 01:16:53 +0000 (-0700) Subject: refactor, add request time to apache log X-Git-Url: https://iankelling.org/git/?a=commitdiff_plain;h=f2b46cd021980ef90d947a169b2164d6a68d0f57;p=basic-https-conf refactor, add request time to apache log --- diff --git a/apache-site b/apache-site index a4f295a..59e541b 100755 --- a/apache-site +++ b/apache-site @@ -94,7 +94,8 @@ fi rm -f /etc/apache2/sites-enabled/000-default.conf mkdir -p $root -dd of=/etc/apache2/sites-enabled/$h.conf <$vhost_file < ServerName $h ServerAlias www.$h @@ -102,26 +103,30 @@ dd of=/etc/apache2/sites-enabled/$h.conf <s %O \"%{Referer}i\" \"%{User-Agent}i\" %{ms}T" vhost_time_combined ServerAdmin webmaster@localhost DocumentRoot /var/www/html @@ -138,9 +143,8 @@ EOF mkdir -p /etc/letsencrypt - base_file=/etc/letsencrypt/options-ssl-apache.conf # this is from cerbot, see below. - dd of=$base_file <<'EOF' + cat >$certbot_ssl_conf <<'EOF' # Baseline setting to Include for SSL sites SSLEngine on @@ -166,7 +170,7 @@ LogFormat "%v %h %l %u %t \"%r\" %>s %b" vhost_common EOF upstream=https://github.com/certbot/certbot/raw/master/certbot-apache/certbot_apache/options-ssl-apache.conf - if ! diff -c <(wget -q -O - $upstream) $base_file; then + if ! diff -c <(wget -q -O - $upstream) $certbot_ssl_conf; then cat < # vim: syntax=apache ts=4 sw=4 sts=4 sr noet