修复修改头部返回正确302正确页面

测试

1.修改nginx  server_name

有域名修改为域名,没域名写公网IP

server_name 181.233.101.11;

2.新增server一个非host头为 181.233.101.11 返回403

server {
server_tokens off;
listen 80 default_server;
server_name _;
access_log off;
return 403;
}

3.再次测试(成功)

原文地址:https://www.cnblogs.com/elson-zeng/p/11856080.html