nginx location rewrite but proxy_rewrite off

Posted by Jan on Server Fault See other posts from Server Fault or by Jan
Published on 2012-10-23T09:32:14Z Indexed on 2012/10/23 11:03 UTC
Read the original article Hit count: 207

Filed under:
|
|

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?

© Server Fault or respective owner

Related posts about nginx

Related posts about rewrite