https://blog.csdn.net/lzwglory/article/details/44307573
在 server 里面 加上 rewrite
server {
if ( $host != 'www.xxxx.net' ) {
rewrite "^/(.*)$" http://www.xxxx.net/$1 permanent;
}
}
https://blog.csdn.net/lzwglory/article/details/44307573
在 server 里面 加上 rewrite
server {
if ( $host != 'www.xxxx.net' ) {
rewrite "^/(.*)$" http://www.xxxx.net/$1 permanent;
}
}