Log upstream IP on tile servers
authorTom Hughes <tom@compton.nu>
Tue, 29 Nov 2016 10:37:15 +0000 (10:37 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 29 Nov 2016 10:54:31 +0000 (10:54 +0000)
cookbooks/tile/templates/default/apache.erb

index 4fcbf9b478a16d66b08a8d4710d823fd7c7c385b..c41c923bf225a3eac464f426dc81c2f773df8212 100644 (file)
@@ -22,7 +22,8 @@
 <% end -%>
 
   # Setup logging
 <% end -%>
 
   # Setup logging
-  CustomLog /var/log/apache2/access.log combined
+  LogFormat "%a %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined_with_remoteip
+  CustomLog /var/log/apache2/access.log combined_with_remoteip
   ErrorLog /var/log/apache2/error.log
   BufferedLogs on
 
   ErrorLog /var/log/apache2/error.log
   BufferedLogs on