Use rewrite /blog to transparently proxy to another app

Fernando Perez lists at ruby-forum.com
Mon Aug 2 23:14:08 MSD 2010


Fernando Perez wrote:
> Why in hell does it insist on redirecting?
> 
> location /blog/ {
>   rewrite            /blog/(.+) $1 break;
>   proxy_pass         http://blog;
> }
> 
> 
> I never understood how nginx handled rewrites.

My bad, it was my trialing slash rewriter that was conflicting. But now 
how to handle the trialing slash issue? Just deal with it and hope no 
one links to my apps with/without trialing slashes?
-- 
Posted via http://www.ruby-forum.com/.



More information about the nginx mailing list