当前位置:首页 ? nginx亚博体育竞彩app知识

nginx问题——session丢失

2018-11-11 06:00 本站整理 浏览(172)

server{
??????? listen 80;
??????? server_name www.jiahemdata.com www.jiahemdata.cn;
??????? root /opt/tomcat-jhyx/webapps/jhyx/;
??????? charset utf-8;
??????? location /{
??????????? proxy_redirect off;
??????????? proxy_pass http://127.0.0.1:8093/jhyx/;
??????????? proxy_cookie_path /jhyx/ /;
??????????? proxy_cookie_path /jhyx /;
??????????? proxy_set_header Host $host;
??????????? proxy_set_header Referer $http_referer;
??????????? proxy_set_header Cookie $http_cookie;?? //请求发送时携带cookie信息
??????????? proxy_set_header X-Real-Ip $remote_addr;
??????????? proxy_set_header?? X-Forwarded-For??? $proxy_add_x_forwarded_for;
??????? }
??????? access_log logs/tomcat_access.log;
??? }
? ? ?