Nginx reverse proxy IP forwarding

February 20, 2016 865 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

1 Answer

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

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...
Have another answer? Share your knowledge.