nginx server redirect

Edho P Arief edhoprima at gmail.com
Sat Jun 20 10:17:24 MSD 2009


On Sat, Jun 20, 2009 at 12:44 PM, Kevin
Castiglione<kevincastiglione at gmail.com> wrote:
> hi
> if any one goes to
> XXX.aaa.com/bbb
>
> i want to do a permanent redirect to
> aaa.com/bbb
>
>
> any suggestions on how to do this?
> thank you
>

server {
  listen 80;
  server_name *.aaa.com;
  rewrite ^.* http://aaa.com$uri;
}


-- 
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org





More information about the nginx mailing list