Nginx reverse proxy IP forwarding

Posted February 20, 2016 9.7k views

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;

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.

Submit an Answer
1 answer

I do have the same issues. I tried to use private networking from this tuturial . What application server you are using?

by Mitchell Anicas
Node.js is an open source Javascript runtime environment for easily building server-side and networking applications. The platform runs on Linux, OS X, FreeBSD, and Windows, and its applications are written in JavaScript. Node.js applications can be run at the command line but we will...