diff modules/website/manifests/http.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 72466547cc79
children 1df1e161bbb5
line wrap: on
line diff
--- a/modules/website/manifests/http.pp	Sat Apr 01 10:54:09 2017 +0100
+++ b/modules/website/manifests/http.pp	Sun Apr 02 20:09:13 2017 +0100
@@ -35,6 +35,7 @@
     custom_fragment => $custom_fragment,
     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",
     serveraliases   => $serveraliases,
     ensure          => $ensure,
   }