Welcome! Log In Create A New Profile

Advanced

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

March 25, 2016 11:09PM
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
Subject Author Posted

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

rowland@river2sea.org March 25, 2016 08:02PM

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

JoakimR March 25, 2016 11:09PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 263
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready