Skipping the proxy cache based on a cookie?
António P. P. Almeida
appa at perusio.net
Thu Jan 20 04:20:35 MSK 2011
On 19 Jan 2011 22h19 WET, nginx-forum at 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
More information about the nginx
mailing list