原文地址:點擊打開鏈接
以下為?&_ga=1.161910972.1696054694.1422417685#PRoxy_cookie_path 加上路徑轉換:proxy_cookie_path /wx /testwx;則可以將wx的cookie輸出到testwx上,Tomcat的session正常了。正確的配置是: location /testwx { proxy_pass http://127.0.0.1:8080/wx; proxy_cookie_path /wx /testwx;#這里的路徑要注意對應關系 } 如果需要更復雜的路徑轉換可用通配符的方式進行轉換,詳情要查看http://nginx.org/en/docs/http/ngx_http_proxy_module.html?&_ga=1.161910972.1696054694.1422417685#proxy_cookie_path了。
新聞熱點
疑難解答