美文网首页
redirect后 https变成http

redirect后 https变成http

作者: 倪宝华 | 来源:发表于2018-06-07 11:57 被阅读0次

    我们的环境是SLB+nginx, https配置在阿里的SLB上,然后到nginx上

    在登录后成功跳转到页面的时候使用了response.redirect(),但是却跳转到http的请求。

    解决办法:nginx中增加如下配置:

    proxy_redirect http:// https://;

    相关文章

      网友评论

          本文标题:redirect后 https变成http

          本文链接:https://www.haomeiwen.com/subject/mxxgsftx.html