locked
IIS Reverse Proxy - forward user IP instead of server IP RRS feed

  • Question

  • User-355457054 posted

    Hello there,

    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?

    Many Thanks!

    Friday, February 5, 2021 10:01 AM

All replies

  • User690216013 posted

    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,

    • Confirm that IIS reverse proxy sends the correct IP via HTTP headers.
    • Check the forum web app documentation to see how to configure it to use the IP address from HTTP headers.
    Saturday, February 6, 2021 7:14 PM
  • User1771714573 posted

    Hi LuckVintage,

    In the 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.

    Best regards,

    Brucz

    Sunday, February 7, 2021 6:36 AM