vim /usr/local/nginx/conf/vhosts/test.conf
if ($host != 'www.hy.com'){ rewrite ^/(.*)$ http://www.hy.com/$1 permanent; }
/usr/local/nginx/sbin/nginx -t
/usr/local/nginx/sbin/nginx -s reload(/etc/init.d/nginx reload)