Welcome! Log In Create A New Profile

Advanced

How to add cookie when proxy_pass via programming?

May 27, 2011 12:49AM
Hey, I want to add custom cookie when proxy pass to the upstream in my custom module. I want to implement like what this config does:

proxy_pass http://servers;
proxy_add_header Cookie "$http_cookie;KEY=VALUE";

But sinc the VALUE is dynamically generated so I need to add this cookie via programming.

How to do that?

Thanks very much.
Subject Author Posted

How to add cookie when proxy_pass via programming?

speedfirst May 27, 2011 12:49AM

Re: How to add cookie when proxy_pass via programming?

Igor Sysoev May 27, 2011 04:02AM

Re: How to add cookie when proxy_pass via programming?

speedfirst May 27, 2011 05:32AM

Re: How to add cookie when proxy_pass via programming?

Igor Sysoev May 27, 2011 05:46AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 64
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready