1. 域名重定向
server_name wx.he.com weixin.ha.com; if ($http_host !~* "wx\.he\.com"){
rewrite ^/(.*)$ http://wx.he.com/$1 permanent;
}
1. 域名重定向
server_name wx.he.com weixin.ha.com; if ($http_host !~* "wx\.he\.com"){
rewrite ^/(.*)$ http://wx.he.com/$1 permanent;
}