Welcome! Log In Create A New Profile

Advanced

Re: How to add cookie when proxy_pass via programming?

May 27, 2011 04:02AM
On Fri, May 27, 2011 at 12:49:30AM -0400, speedfirst wrote:
> 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?

Create a module that defines a veriable and use it in
proxy_set_header Cookie "$http_cookie; key=$var";


--
Igor Sysoev

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
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: 149
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready