Nginx https代理tomcat redirect问题的解决 - Linux
前端nginx,同时启用http和https服务,但是在https页面内不允许加载 http的请求、服务器端重定向时会返回http导致页面不加载也就是请求不到资源,修改nginx配置,关键配置如下: 在server段增加:
proxy_redirect http:// $scheme://;
port_in_redirect on;
proxy_set_header Host $host:$server_port;
reload nginx以后问题解决;
Tag标签:「nginx tomcat redirect 」更新时间:「2018-03-21 18:59:00」阅读次数:「1711」