From b20fd2a506d32067716e1d637ed3bf1f87cffe92 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 9 Nov 2014 12:23:16 +0000 Subject: [PATCH] Make sure we log the real client IP on the web backends --- cookbooks/web/templates/default/apache.backend.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbooks/web/templates/default/apache.backend.erb b/cookbooks/web/templates/default/apache.backend.erb index 6128b322c..cbe37f048 100644 --- a/cookbooks/web/templates/default/apache.backend.erb +++ b/cookbooks/web/templates/default/apache.backend.erb @@ -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 -- 2.39.5