summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/changelog1
-rw-r--r--debian/config-dir/apache2.conf1
2 files changed, 2 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
index c27e1796..804cb6fd 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -8,6 +8,7 @@ apache2 (2.2.6-3) UNRELEASED; urgency=low
* Redirect /doc/apache2-doc/manual/ to /manual/ in the apache2-doc config
(Closes: #450867).
* Add icons for .ogg and .ogm (Closes: #255443).
+ * Add comment about how to log X-Forwarded-For (Closes: #425008).
* Make mod_proxy_balancer not depend on mod_cache.
* Add Homepage field to debian/control.
diff --git a/debian/config-dir/apache2.conf b/debian/config-dir/apache2.conf
index 1959ddb1..7741c5a5 100644
--- a/debian/config-dir/apache2.conf
+++ b/debian/config-dir/apache2.conf
@@ -192,6 +192,7 @@ Include /etc/apache2/ports.conf
#
# The following directives define some format nicknames for use with
# a CustomLog directive (see below).
+# If you are behind a reverse proxy, you might want to change %h into %{X-Forwarded-For}i
#
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common