配置代码

server
{
listen 80;
server_name www.72xit.com 72xit.com;
if ($host != 'www.72xit.com' ) {
rewrite ^/(.*)$ http://www.72xit.com/$1 permanent;
}
}