redirect 301 alias domain

zuckbin nginx-forum at nginx.us
Mon Mar 3 15:43:01 UTC 2014


hi,

i want to do a 301 redirect on all my alias domain for a domain

but i stuck in an infinite loop!

server{
    listen 80;
    server_name www.aaa.com www.aa.com ...
    return 301 http://www.bbb.com$request_uri;

}

server{
    listen 80;
    server_name www.bbb.com
    ...
   ....

}

how to solve this ?

thanks,
bye

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



More information about the nginx mailing list