Basic authentication and reverse proxy

John Moore grails at jmsd.co.uk
Fri Nov 21 02:01:38 MSK 2008


Maxim Dounin wrote:
>
> Guess you used
>
> proxy_pass http://your-backend/;
>
> in your proxy.conf (note the trailing '/').  This will replace 
> part of the uri matched by location with '/'.
>
> Correct solution is to use proxy_pass without path component, i.e.
>
> proxy_pass http://your-backend;
>
>
>   
Thanks, that's exactly right, that fixed it. It's strange, I've used 
nginx for months now without this ever having been an issue before.


JM






More information about the nginx mailing list