如果www.coolaj.cn coolaj.cn都解析到www.coolaj.cn
打开 nginx.conf文件找到你的server配置段:
server
{
listen 80;
server_name www.coolaj.cn coolaj.cn;
if ($host != 'www.coolaj.cn' ) {
rewrite ^/(.*)$ http://www.coolaj.cn/$1 permanent;
}
如果www.coolaj.cn coolaj.cn都解析到www.coolaj.cn
打开 nginx.conf文件找到你的server配置段:
server
{
listen 80;
server_name www.coolaj.cn coolaj.cn;
if ($host != 'www.coolaj.cn' ) {
rewrite ^/(.*)$ http://www.coolaj.cn/$1 permanent;
}