How to add cookie when proxy_pass via programming?

Igor Sysoev igor at
Fri May 27 13:44:16 MSD 2011

On Fri, May 27, 2011 at 05:32:11AM -0400, speedfirst wrote:
> Thanks. And I want to know the time when "proxy_set_header" is executed,
> because the my cookie value is related to the chosen upstream server. So
> will proxy_set_header happen before upstream peer initialization or
> after that?

Before, and this value is used for all upstreams.

Igor Sysoev

More information about the nginx mailing list