httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Konstantin Kolinko <>
Subject Re: [users@httpd] X-Forwarded-For header is missing
Date Wed, 08 Nov 2017 11:21:05 GMT
2017-11-07 21:44 GMT+03:00 Surendhar Thallapelly <>:
> Hi Konstantin,
>> Hi Team,
>> I configured apache http web server to redirect incoming WEBSERVICE call
>> to
>> another backend application server, X-Forwarded-For is missing(webserver
>> ip)
>> in backend call.
>> I have configured below in my webserver httpd.conf file.
>> ProxyPass /TestProject
>> ProxyPassReverse /TestProject
> 1. Version of Apache HTTP server = ? 2.2 & 2.4 both of versions it didn't
> work
> 2. What is your configuration of ProxyAddHeaders directive?
> ProxyAddHeaders On
> I also enabled
> LoadModule proxy_module modules/
> LoadModule proxy_http_module modules/
> X-Forwarded-Host is working showing in my backend call, only X-Forwarded-For
> is missing.  I am also attaching my complete http.conf(2.4 version) file for
> your review, please review and help me.

Maybe the "X-Forwarded-For" is sent by Apache HTTPD, but is processed
and removed by your backend?

E.g. in Apache Tomcat if a RemoteIpValve is configured,
it will process and hide this header from underlying web applications,
while its original value is still visible in Access Log and can be
logged with %{xxx}i

it is odd how you place your "ProxyAddHeaders On" directive at the top
of the file.

My expectation is that the directive should be moved below relevant
"LoadModule" line,
or the configuration fails to load.

Best regards,
Konstantin Kolinko

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message