Acfe 发表于 2018-11-8 07:45:26

nginx session 丢失解决

location /ckl {  
                proxy_passhttp://localhost:8080/ckl/;
  
                proxy_cookie_path /ckl /; #增加此行
  
                proxy_set_header Host $host;
  
                proxy_set_header X-Real-IP $remote_addr;
  
                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  
                proxy_redirect   off;
  
                proxy_read_timeout60s;
  
                proxy_connect_timeout   60s;
  
                proxy_send_timeout   60s;
  
                proxy_set_header X-Forwarded-Proto https;
  
                proxy_intercept_errors on;
  
      }


页: [1]
查看完整版本: nginx session 丢失解决