remove www from the url

lifeisjustabout nginx-forum at nginx.us
Fri Feb 18 20:34:57 MSK 2011


server {
    listen      80;
    server_name test.co.uk;
    rewrite     ^ http://www.test.co.uk$request_uri permanent;
}

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




More information about the nginx mailing list