I do use following proxy set options.
ocation / {
proxy_pass http://backend;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto http;
proxy_set_header X-Forwarded-Port 80;
proxy_set_header Host $host;
}
In my upstream the backend the my protected second NGINX server.
Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,256888,256890#msg-256890
_______________________________________________
nginx mailing list
[email protected]
http://mailman.nginx.org/mailman/listinfo/nginx