nginx location rewrite but proxy_rewrite off
- by Jan
I'm trying to use nginx for proxying requests to my internal backend.
My configuration reads as follows:
location /Shibboleth.sso {
proxy_pass internal-backend; # ip
proxy_redirect off;
}
But, my redirects are always rewritten.. My backend returns a response like https://www.google.de/test and my browser receives https://www.mydomain.de/test
How do I get nginx to just forward the response?