nginx问题——session丢失
程序员文章站
2022-07-14 22:27:12
...
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;
}
上一篇: 四大类编程思想
下一篇: H5 利用media实现自适应布局