Monday, 15 May 2017

NGINX shows the actual IP of the server when forwarding requests, How to prevent this?

my /etc/nginx/sites-available/default FILE

    location / {
    proxyredirect off;
    proxypass http://localhost:7000;
    proxyhttpversion 1.1;
    proxysetheader Upgrade $httpupgrade;
    proxysetheader Connection 'upgrade';
    proxysetheader Host $host;
    proxycachebypass $httpupgrade;
    proxy_redirect off;
    }



via Pravandan Chand

No comments:

Post a Comment