On Fri, Jan 24, 2014 at 11:42 PM, wishmaster wrote:
> What is your proxy_cache_methods value?
I tried both
proxy_cache_methods OPTIONS;
as well as
proxy_cache_methods GET HEAD OPTIONS;
but both gave the error.
___
nginx mailing list
nginx@n
On Sat, Jan 25, 2014 at 5:24 AM, Jonathan Kolb wrote:
> You can chain two maps to get a logical and:
Thank you, this is precisely what I needed.
> # note the lack of : after default in the maps, it's incorrect to have it
> there like your original map did
Good catch, thanks. Appreciate it.
___
I'm trying to setup cgit 0.10 with nginx 1.2.1-2.2 and fastcgi 1.0.3-3.
Unfortunately the reponse is a 502. The following message is written in
the error.log:
[error] 30956#0: *1 upstream prematurely closed FastCGI stdout while
reading response header from upstream, client: **, server: **, req
You can chain two maps to get a logical and:
map $request_method $is_get {
default 0;
GET 1;
}
map $http_cache_bypass $bypass_cache {
default $is_get;
"" 0;
}
proxy_cache_methods POST;
proxy_cache_bypass $bypass_cache;
# note the lack of : after default in the maps, it's incorrect to ha