转:https://blog.csdn.net/u014433030/article/details/77507839

 

如果我们的nginx配置了反向代理,如下:

 

1 location ^~ /wyq/ {
2             proxy_pass    https://127.0.0.1:$wyq_port;
3             proxy_redirect https://127.0.0.1:$wyq_port/ /;
4             #proxy_redirect off;
5             proxy_set_header Host $host;
6             proxy_set_header X-Real-IP $remote_addr;
7             proxy_set_header X-Forwarded-Proto https;
View Code

相关文章: