From 1c5f6eade8ccad5d8943234254f00e8cf109d96d Mon Sep 17 00:00:00 2001 From: Jason Stephenson Date: Tue, 2 Jul 2019 12:53:16 -0400 Subject: [PATCH] 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 --- Open-ILS/examples/apache_24/eg_vhost.conf.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.43.2