解决iframe、frame和框架丢失或获取不到session、cookies问题
原因: nginx反向代理丢失cookie的问题1. 只有host、端口变化,则cookie不会丢失。如:location /blog { proxy_pass http://127.0.0.1:9001/blog;}2. 如果路径也变化了,则需要设置cookie的路径转换如:location /proxy_path { proxy_pass http://127.0.0.1:9001/; proxy_set_header X-real-ip $remote_addr;}3. 通过浏览器访问http://127.0.
继续阅读