Reverse proxy and rewrite. Need help !

Da Blitter lists at ruby-forum.com
Mon Mar 8 12:17:32 MSK 2010


location /alias2/ {
#  proxy_set_header Host $host;
   proxy_set_header X-Real-IP $remote_addr;
   proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
   proxy_pass http://alias2.domain.net/;
   proxy_redirect default;
}

When I type http://pub.domain.net/alias2 in a browser, I can reach the 
backend machine with this url but the displayed page is messy. Is there 
any way to rewrite/force the url in the browser ?

Blitter
-- 
Posted via http://www.ruby-forum.com/.



More information about the nginx mailing list