Closed fnpanic closed 2 years ago
Hi @fnpanic I'm not a network administrator and unfortunately i don't fully understand the problem By specifying 301 redirect, it should happen kind of in browser. Did you check network tab in a browser? Which requests are actually executed?
I found the problem.
proxy_set_header X-Scheme $scheme;
This passes the protocol to the proxy_pass directive which then upgrades to https no matter what is set in the proxy_pass uri. Remvoing this solves the problem. Maybe it is helpful for someone else also.
Hi,
i am using nginx + script server. The http example works perfect. As soon as i add SSL support proxy_pass redirects to https://127.0.0.1:5000/index.html in the browser instead of doing this in the backend. This is my config:
Not really show why...