Nginx reverse proxy IP forwarding
Does anyone know how do i forward the IP address of my visitors with nginx reverse proxy because i am getting the IP of my droplet :(.
This is what i have for it:
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header Host $host; proxy_pass http://127.0.0.1:8080;
I am using ubuntu 15.10
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×