Why is nginx returning a 301 redirect in my reverse-proxy to a REST service?

JoakimR nginx-forum at forum.nginx.org
Sat Mar 26 03:09:21 UTC 2016


Hi
I'm pretty new in NginX but the directives suggest you add 
proxy_set_header Host      $host;
    proxy_set_header X-Real-IP $remote_addr;
to your config

http://nginx.org/en/docs/http/ngx_http_proxy_module.html

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,265660,265664#msg-265664



More information about the nginx mailing list