Use rewrite /blog to transparently proxy to another app

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


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.
-- 
Posted via http://www.ruby-forum.com/.



More information about the nginx mailing list