Log upstream IP on tile servers
[chef.git] / cookbooks / tile / templates / default / apache.erb
index 4fcbf9b478a16d66b08a8d4710d823fd7c7c385b..c41c923bf225a3eac464f426dc81c2f773df8212 100644 (file)
@@ -22,7 +22,8 @@
 <% 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