location /xxxxx/ {
proxy_pass http://abc.com/;
proxy_redirect http://abc.com/ http://abc.com/xxxxx/;
proxy_set_header Cookie $http_cookie;
proxy_cookie_path / /xxxxx/;
add_header Set-Cookie "cookie_name=$upstream_cookie_[cookie_name转小写,中划线转下划线]";
}