Question

Nginx reverse proxy IP forwarding

Posted February 20, 2016 6.6k views
Nginx

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.

1 answer

I do have the same issues. I tried to use private networking from this tuturial https://www.digitalocean.com/community/tutorials/how-to-set-up-a-node-js-application-for-production-on-ubuntu-14-04 . 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...
Submit an Answer