Nginx配置proxy_cookie_domain

页面地址是a.com,但是要用b.com的cookie需要
proxy_set_header Cookie $http_cookie;
location / {
proxy_cookie_domain b.com a.com;  #注意别写错位置了 proxy_cookie_path / /;
proxy_pass http://b.com;
 }   
参考:http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_cookie_domain



Tagged . Bookmark the permalink.

Comments are closed.