Everyone Has Same IP
The only thing I can think of is that this is a reverse proxy problem. Since I host on Linode I have reverse proxy set up through the DNS in the dashboard, and I believe nginx is also doing a reverse proxy so I can only assume there is some sort of conflict.
How do I disable the reverse proxy of nginx to (hopefully) fix the problem? Or would it be better to disable the reverse proxy in the DNS manager of my Linode?
6 Replies
Add the following to your nginx config for the domain/site you are using.
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header x-forwarded-for $proxy_add_x_forwarded_for;
Once the code is added nginx should pass along the IP Address of the user to your downstream server via the x-forwarded-for header as long as your downstream server supports that header.