IIS 7 and Above
Application Request Routing (ARR)
IIS Reverse Proxy - forward user IP instead of server IP
Last post Feb 07, 2021 06:36 AM by Brucz
Feb 05, 2021 10:01 AM|LuckVintage|LINK
I have an apache webserver running on my Linux server that hosts my online Forum Community. I use IIS for the rest of my websites, therefore I have set-up a reverse proxy on IIS for the apache webserver. However, the IP address of every member on the forum
is the local IP address of my IIS server.
I have looked at many different guides online about how to forward the correct IP address from IIS to the apache website, hwever I have been unsuccessful at this and find some of the guides online outdated / hard to understand.
Please could someone help me achieve this?
Feb 06, 2021 07:14 PM|lextm|LINK
A reverse proxy can only forward the original client IP (from the browser side) via certain HTTP headers like
https://en.wikipedia.org/wiki/X-Forwarded-Forhttps://en.wikipedia.org/wiki/X-Forwarded-Forhttps://en.wikipedia.org/wiki/X-Forwarded-For So if your web app on Apache side does not pick up the right IP address from such headers, it will show the IP address
of the reverse proxy instead.
What you might do right now is,
Feb 07, 2021 06:36 AM|Brucz|LINK
reverse proxy of IIS, the client IP is stored in the X-Forwarded-For header by default. If your apache server does not read this header or the application does not record this header, the apache log always contains IIS server IP address.
You can change X-Forwarded-For to other headers in ARR. Open Server Proxy Setting in ARR.