diff modules/website/manifests/https.pp @ 161:d2b4750e843a puppet-3.6

Add custom log format - combined plus requested domain This helps by logging which domain people hit and got redirected by without having per-domain logs
author IBBoard <dev@ibboard.co.uk>
date Sun, 02 Apr 2017 20:09:13 +0100
parents e661cb2dd942
children 1df1e161bbb5
line wrap: on
line diff
--- a/modules/website/manifests/https.pp	Sat Apr 01 10:54:09 2017 +0100
+++ b/modules/website/manifests/https.pp	Sun Apr 02 20:09:13 2017 +0100
@@ -141,6 +141,7 @@
     custom_fragment => $custom_conf,
     logroot         => '/var/log/apache/',
     access_log_file => "access_${logpart}.log",
+    access_log_format => "%h %l %u %t \\\"%r\\\" %>s %b \\\"%{Referer}i\\\" \\\"%{User-agent}i\\\" %{Host}i",
     error_log_file  => "error_${logpart}.log",
     serveraliases   => $serveraliases,
     ssl             => true,
@@ -159,6 +160,7 @@
     serveraliases   => $serveraliases,
     logroot         => '/var/log/apache/',
     access_log_file => "access_${logpart}_nossl.log",
+    access_log_format => "%h %l %u %t \\\"%r\\\" %>s %b \\\"%{Referer}i\\\" \\\"%{User-agent}i\\\" %{Host}i",
     error_log_file  => "error_${logpart}_nossl.log",
   }
 }