From: Jason Stephenson Date: Tue, 2 Jul 2019 16:53:16 +0000 (-0400) Subject: LP#1834208: Use X-Forwarded-For in example Apache configuration X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=1c5f6eade8ccad5d8943234254f00e8cf109d96d;p=contrib%2FConifer.git LP#1834208: Use X-Forwarded-For in example Apache configuration Change X-Real-IP to X-Fowarded-For in Open-ILS/examples/apache_24/ eg_vhost.conf.in to match changes in the OpenSRF example proxy configurations for nginx and haproxy. Signed-off-by: Jason Stephenson Signed-off-by: Ben Shum --- diff --git a/Open-ILS/examples/apache_24/eg_vhost.conf.in b/Open-ILS/examples/apache_24/eg_vhost.conf.in index 95d0702b6d..6301516f81 100644 --- a/Open-ILS/examples/apache_24/eg_vhost.conf.in +++ b/Open-ILS/examples/apache_24/eg_vhost.conf.in @@ -413,11 +413,11 @@ RewriteRule .? - [E=locale:%{HTTP:Accept-Language}] # OPTIONAL: Running the translator behind a proxy requires accessing # the client IP address via mod_remoteip (sudo a2enmod remoteip). # Below is a sample configuration for a proxy running on the same -# server and passing the client IP address via the X-Real-IP header. +# server and passing the client IP address via the X-Forwarded-For header. # #RemoteIPInternalProxy 127.0.0.1/24 #RemoteIPInternalProxy ::1 -#RemoteIPHeader X-Real-IP +#RemoteIPHeader X-Forwarded-For SetHandler osrf_http_translator_module