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;
}

原文地址:https://www.cnblogs.com/bootoo/p/5315268.html