Weird behavior when checking the existence of a cookie
marcello.rocha at vagas.com.br
Tue Sep 30 20:25:29 UTC 2014
Hmmm... that's not really an option. The upstream does not know that it's
under a subdir of the domain (and the devs insist that it shouldn't be
coupled to that).
Also, if the cookie detection lines are commented out, the proxy_pass (w/
the ending forward slash) works as expected.
This specific behavior (cookie detection affecting proxy_pass) seems rather
Other than that the requirements are similar to the thread named "Rewriting
location directive by upstream servers".
Pesquisa & Desenvolvimento
Date: Fri, 26 Sep 2014 14:11:57 -0300
> From: Wandenberg Peixoto <wandenberg at gmail.com>
> To: nginx at nginx.org
> Subject: Re: Weird behavior when checking the existence of a cookie
> CAFXmt0Uvo1oQnFvvDBRHZNV8cG5+MqWDig3qBUAzFR+BkeNtYg at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
> By default the $uri is appended to the proxy_pass directive.
> Since you defined as
> proxy_pass http://upstream*/*;
> and the $uri starts with a slash you will have a double slash.
> Try to set proxy_pass like
> proxy_pass http://upstream;
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the nginx