Show Real IP Nginx Behind Reverse Proxy

When your Nginx web server is running behind a reverse proxy, you will see IP of the reverse proxy server as visitor IP in web servers access log.

To fix this, edit nginx.conf file

Find

Inside http section, add

Example

Restart Nginx

Add a Comment

Your email address will not be published. Required fields are marked *