配置实例:
[root@iZbp17q09o7e8pgg9dybd7Z conf.d]# cat company.conf
server {
 listen 80;
 server_name www.yu*******dao.com www.bj******kd.com;
 if ($host != 'www.yu********dao.com')
 {
 rewrite ^/(.*)$ http://www.yu**********dao.com/$1 permanent;
}
 return 301 https://$host$request_uri;
}