Make sure we log the real client IP on the web backends
authorTom Hughes <tom@compton.nu>
Sun, 9 Nov 2014 12:23:16 +0000 (12:23 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 9 Nov 2014 12:23:16 +0000 (12:23 +0000)
cookbooks/web/templates/default/apache.backend.erb

index 6128b32..cbe37f0 100644 (file)
@@ -19,7 +19,7 @@
   #
   # Setup logging
   #
-  LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\" %Ts" combined_with_time
+  LogFormat "%a %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\" %Ts" combined_with_time
   CustomLog /var/log/apache2/access.log combined_with_time
   ErrorLog /var/log/apache2/error.log