Setting headers and cookies when proxying

Igor Sysoev is at
Sat Aug 16 09:41:32 MSD 2008

On Fri, Aug 15, 2008 at 10:35:40PM -0700, Guy Naor wrote:

> That will set a header, but will not allow me to set a cookie. If I use:
> set_proxy_header Cookie whatever=something;
> It overwrites the cookies sent by the browser. Is there a way to add a 
> cookie this way?

set_proxy_header Cookie "whatever=something;$http_cookie";

Igor Sysoev

More information about the nginx mailing list