nginx server redirect

Jim Ohlstein nginx-forum at nginx.us
Sun Jun 21 06:52:46 MSD 2009


Kevin Castiglione Wrote:
-------------------------------------------------------
> 
> also this rewrite rule gives Redirect Loop error
> on all browsers.
> thank you

You need something like


server   {
    server_name XXX.aaa.com/bbb;
    listen 80;
    ...
    rewrite   ^    http://aaa.com/bbb$request_uri? permanent;
}


Posted at Nginx Forum: http://forum.nginx.org/read.php?2,3167,3202#msg-3202






More information about the nginx mailing list