Apache Lounge



Forum Index Downloads Search Register Log in  RSS Apache Lounge

Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.



A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Apache Lounge is not sponsored.

Your donations will help to keep this site alive and well, and continuing building binaries.

X-Forwarded-For header is missing

Post new topic   Reply to topic    Apache Forum Index -> Apache

View previous topic :: View next topic  
Author Message

Joined: 07 Nov 2017
Posts: 1
Location: India

PostPosted: Tue 07 Nov '17 9:14    Post subject: X-Forwarded-For header is missing Reply with quote


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

Back to top
James Blond

Joined: 19 Jan 2006
Posts: 6604
Location: Germany, Next to Hamburg

PostPosted: Tue 21 Nov '17 17:14    Post subject: Reply with quote

You can try

RequestHeader setifempty x-forwarded-for %{REMOTE_ADDR}s

if you need to see that IP on the client as well use:

Header add x-forwarded-for %{REMOTE_ADDR}s
Back to top

Post new topic   Reply to topic    Apache Forum Index -> Apache
Page 1 of 1