zoukankan      html  css  js  c++  java
  • nginx https shiro logout自动回到http

    开发毕设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;
            }
        }
  • 相关阅读:
    clean code
    jenkins
    获取目录下的文件名称
    bootstrap-select 下拉互斥
    supervisord
    正则表达式
    Docker
    git
    goland工具
    小程序 swiper 轮播图滚动图片 + 视频
  • 原文地址:https://www.cnblogs.com/zsh-blogs/p/12165852.html
Copyright © 2011-2022 走看看