logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

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

or

Bitcoin

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

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: X-Forwarded-For header is missing
Author
Surendhar



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

Hi,

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 http://10.160.160.33:2914/TestProject
ProxyPassReverse /TestProject http://10.160.160.33:2914/TestProject

Thanks,
Surendhar
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
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


Reply to topic   Topic: X-Forwarded-For header is missing View previous topic :: View next topic
Post new topic   Forum Index -> Apache