jsp request.getScheme() 取到https正确的协议(转载)
转载地址:https://blog.youkuaiyun.com/weixin_30248399/article/details/97370807添加链接描述
使用nginx前端代理https网址url转到tomcat后端,发现jsp页面中的request.getScheme()获取到的值为http,解决方案为
在nginx的https配置中添加配置
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
pro
转载
2021-03-26 08:43:10 ·
874 阅读 ·
0 评论