这么写后,解析到服务器的所有域名全部跳到https://www.bbxinwen.com,感觉server_name绑定的域名无效?(删除了目录下默认的default.conf)server{listen80;server_namewww.bbxinwen.com;return301https://www.bbxinwen.com$request_uri;}server{listen443ssl;server_namewww.bbxinwen.com;……}
server{listen80;server_namewww.bbxinwen.com;return301https://www.bbxinwen.com$request_uri;}server{listen443ssl;server_namewww.bbxinwen.com;……}
listen80;server_namewww.bbxinwen.com;return301https://www.bbxinwen.com$request_uri;}server{listen443ssl;server_namewww.bbxinwen.com;……}
server_namewww.bbxinwen.com;return301https://www.bbxinwen.com$request_uri;}server{listen443ssl;server_namewww.bbxinwen.com;……}
return301https://www.bbxinwen.com$request_uri;}server{listen443ssl;server_namewww.bbxinwen.com;……}
}server{listen443ssl;server_namewww.bbxinwen.com;……}
server{listen443ssl;server_namewww.bbxinwen.com;……}
listen443ssl;server_namewww.bbxinwen.com;……}
server_namewww.bbxinwen.com;……}
……}
}
相关分类