nginx 反向代理的问题

 

nginx 反向代理时,php setcookie() 出现异常。

 

location ^~ /special/ {
  proxy_set_header client-ip $remote_addr;
  proxy_set_header x-forwarded-for $proxy_add_x_forwarded_for;
  proxy_set_header remote-host $http_host;
  proxy_set_header Cookie $http_cookie; #注意要加上这个
  proxy_pass http://d.zt.mingshiedu.com;
}

posted @ 2016-03-24 13:59  andy_1987_chen  阅读(172)  评论(0编辑  收藏  举报