码迷,mamicode.com
首页 > Web开发 > 详细

nginx https shiro logout自动回到http

时间:2020-01-08 12:55:30      阅读:122      评论:0      收藏:0      [点我收藏+]

标签:shiro   aes   insecure   prot   client   docker部署   pre   ssi   问题   

开发毕设Docker部署nginx代理https之后,遇到一个问题

使用的Shiro点退出一直跳到http

技术图片

 

 解决方法:

proxy_redirect http:// https://

server {
        listen 9999;
        server_name www.qqzsh.top;
        ssl on;
        ssl_certificate  /etc/nginx/b.pem;
        ssl_certificate_key  /etc/nginx/a.key;
        ssl_session_timeout 5m;
        ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
        ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
        ssl_prefer_server_ciphers on;
        location / {
            proxy_pass http://172.30.0.2:10086;
            add_header Content-Security-Policy upgrade-insecure-requests;
            proxy_set_header Host $host:$server_port;
           proxy_set_header X-Real-IP $remote_addr; 
           proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 
           proxy_redirect http:// https://;
            client_max_body_size 10M;
        }
    }

 

nginx https shiro logout自动回到http

标签:shiro   aes   insecure   prot   client   docker部署   pre   ssi   问题   

原文地址:https://www.cnblogs.com/zsh-blogs/p/12165852.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!