From 8a050c1f2563376a05350bc6221b5098ff515201 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sun, 20 Jul 2014 12:19:12 +0200 Subject: [PATCH] Different log rules for http vs. https --- modules/roles/templates/apache-www.debian.org.erb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/modules/roles/templates/apache-www.debian.org.erb b/modules/roles/templates/apache-www.debian.org.erb index ff7ca6137..7a2863b5a 100644 --- a/modules/roles/templates/apache-www.debian.org.erb +++ b/modules/roles/templates/apache-www.debian.org.erb @@ -148,8 +148,6 @@ ServerAdmin webmaster@debian.org ServerAlias www-*.debian.org DocumentRoot <%= wwwdo_document_root %>/ - ErrorLog /var/log/apache2/www.debian.org-error.log - CustomLog /var/log/apache2/www.debian.org-access.log privacy # CacheNegotiatedDocs: By default, Apache sends Pragma: no-cache with each # document that was negotiated on the basis of content. This asks proxy @@ -266,9 +264,15 @@ > + ErrorLog /var/log/apache2/www.debian.org-error.log + CustomLog /var/log/apache2/www.debian.org-access.log privacy + Use common-www.d.o > + ErrorLog /var/log/apache2/www.debian.org-error.log + CustomLog /var/log/apache2/www.debian.org-access.log privacyssl + Use common-www.d.o Use common-debian-service-ssl www.debian.org @@ -285,6 +289,7 @@ Redirect permanent / https://www.debian.org/ + Use common-debian-service-ssl www.debian.org Use common-ssl-HSTS -- 2.20.1