NGINX下tomcat的jsessionid无法带回的解决方法

    技术2022-07-12  82

    加入一个全局转义: rewrite ^(.*)\;jsessionid=(.*)$  $1   break; 例如: server {         listen       80;         server_name  *.xxx.com *.mall.xxx.com;         #charset koi8-r;         #access_log  logs/host.access.log  main;         root    /data/app/xnradmin/;         index  login.jsp index.jsp;         rewrite ^(.*)\;jsessionid=(.*)$  $1   break; #        location / { #                root   /data/app/xnradmin/; #                index  index.html index.htm index.jsp; #                proxy_pass http://localhost:8080; #        }         location ~ \.(jsp|do|action)$ {

     

    Processed: 0.010, SQL: 9