nginxHost值设置$server_port :nigix监听的端⼝
#设置请求头"Host"值(为⼊⼝域名和端⼝)
proxy_set_header Host $http_host;
#设置为upstream对应服务器(IP和端⼝)
记住我proxy_set_header Host $proxy_host;
#设置为⼊⼝Host和当前nginx监听端⼝
proxy_set_header Host $host:$server_port;
#默认
proxy_set_header Host $proxy_host;#schemaproxy_set_header X-Forwarded-Proto $scheme;
发布评论