Welcome! Log In Create A New Profile

Advanced

Re: Skipping the proxy cache based on a cookie?

António P. P. Almeida
January 19, 2011 08:30PM
On 19 Jan 2011 22h19 WET, nginx-forum@nginx.us wrote:

> I throw my hands up in surrender as I just can't get it to return
> the cookie.
>
> I have tried a plain vanilla build with no joy.
>
> v0.8.54
>
> The relevant location code is ...

Like Marcus said before. You're likely to have some implicit location
(if) that it isn't working.

> location /folder/ {
> if ($http_cookie !~* "COOKIEX=0") {
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
have you checked using the debug flag in the error log
that this if (implicit location) is entered?

Read this explanation by Maxim in another thread:
http://forum.nginx.org/read.php?2,156552,156552

> add_header Cookie "COOKIEX=1;
> domain=domain.com; path=/folder/";
> }
>
> # BEGIN Url Rewrites
> ...
> # END Url Rewrites
>
> try_files $uri $uri/ @proxy;
> }

--- appa


_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Skipping the proxy cache based on a cookie?

ehudros2 December 29, 2010 09:15AM

Re: Skipping the proxy cache based on a cookie?

ehudros2 December 30, 2010 08:27AM

Re: Skipping the proxy cache based on a cookie?

Dayo January 01, 2011 10:52AM

Re: Skipping the proxy cache based on a cookie?

ehudros2 January 02, 2011 07:28AM

Re: Skipping the proxy cache based on a cookie?

Dayo January 18, 2011 04:34PM

Re: Skipping the proxy cache based on a cookie?

António P. P. Almeida January 18, 2011 05:00PM

Re: Skipping the proxy cache based on a cookie?

agentzh January 19, 2011 11:08PM

Re: Skipping the proxy cache based on a cookie?

António P. P. Almeida January 20, 2011 03:38PM

Re: Skipping the proxy cache based on a cookie?

Dayo January 18, 2011 05:18PM

Re: Skipping the proxy cache based on a cookie?

Dayo January 19, 2011 01:44PM

Re: Skipping the proxy cache based on a cookie?

Dayo January 19, 2011 01:45PM

Re: Skipping the proxy cache based on a cookie?

Dayo January 19, 2011 02:06PM

Re: Skipping the proxy cache based on a cookie?

Dayo January 19, 2011 02:07PM

Re: Skipping the proxy cache based on a cookie?

Dayo January 19, 2011 05:19PM

Re: Skipping the proxy cache based on a cookie?

Dayo January 19, 2011 02:58PM

Re: Skipping the proxy cache based on a cookie?

Dayo January 19, 2011 04:49PM

Re: Skipping the proxy cache based on a cookie?

António P. P. Almeida January 19, 2011 03:20PM

Re: Skipping the proxy cache based on a cookie?

Dayo January 19, 2011 03:43PM

Re: Skipping the proxy cache based on a cookie?

Dayo January 19, 2011 04:22PM

Re: Skipping the proxy cache based on a cookie?

António P. P. Almeida January 19, 2011 04:10PM

Re: Skipping the proxy cache based on a cookie?

Eugaia January 19, 2011 04:30PM

Re: Skipping the proxy cache based on a cookie?

António P. P. Almeida January 19, 2011 04:36PM

Re: Skipping the proxy cache based on a cookie?

António P. P. Almeida January 19, 2011 08:30PM

Re: Skipping the proxy cache based on a cookie?

Dayo January 20, 2011 03:08PM

Re: Skipping the proxy cache based on a cookie?

Dayo January 21, 2011 03:51PM

Re: Skipping the proxy cache based on a cookie?

Dayo January 21, 2011 03:52PM

Re: Skipping the proxy cache based on a cookie?

Dayo January 21, 2011 04:17PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 268
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