We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
X-Forwarded-For
1 parent 1479cc2 commit 818d776Copy full SHA for 818d776
rootfs/etc/apache2/conf-available/logging.conf
@@ -2,3 +2,9 @@
2
ErrorLog /dev/stderr
3
TransferLog /dev/stdout
4
CustomLog /dev/stdout combined
5
+# XXX: `/etc/apache2/apache.conf` recommends against the use of
6
+# `%{X-Forwarded-For}i`, to instead use `mod_remoteip`; however, `mod_remoteip`
7
+# additionally sets `$_SERVER['REMOTE_ADDR']` that PHP uses and that
8
+# Drupal/Symfony uses for issues around being reverse proxied; therefore, let's
9
+# proceed to log `%{X-Forwarded-For}i` against the distro's recommendations.
10
+LogFormat "%{X-Forwarded-For}i %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
0 commit comments