﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	uname	nginx_version
602	fastcgi_cache doesn't accept variable	Javier Garcia		"I use nginx provided by atomic repos in centos 6.5

First I set up the following variable in the server block.
set $fastcgi_cache_zone one;

BTW I tried to define a global/default one in the http block but I get this error:
[emerg] ""set"" directive is not allowed here in /etc/nginx/nginx.conf

Then I write this in the php location block which is inside the server block
fastcgi_cache $fastcgi_cache_zone;

And this also fails in the purge location block which is inside the server block. However this is using the module ngx_cache_purge-2.1 which I don't know if it is supported here.
fastcgi_cache_purge $fastcgi_cache_zone ""$scheme$request_method$host$1"";

The error is this one for both:
nginx: [emerg] ""fastcgi_cache"" zone ""$fastcgi_cache_zone"" is unknown in /etc/nginx/nginx.conf:53"	defect	closed	minor		nginx-core	1.6.x	invalid	fastcgi_cache, variable	javiertury@…	Linux localhost.localdomain 2.6.32-431.23.3.el6.x86_64 #1 SMP Thu Jul 31 17:20:51 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux	"nginx version: nginx/1.6.0
TLS SNI support enabled
configure arguments: --prefix=/usr/share/nginx --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --http-client-body-temp-path=/var/lib/nginx/tmp/client_body --http-proxy-temp-path=/var/lib/nginx/tmp/proxy --http-fastcgi-temp-path=/var/lib/nginx/tmp/fastcgi --http-uwsgi-temp-path=/var/lib/nginx/tmp/uwsgi --http-scgi-temp-path=/var/lib/nginx/tmp/scgi --pid-path=/var/run/nginx.pid --lock-path=/var/lock/subsys/nginx --user=nginx --group=nginx --with-file-aio --with-ipv6 --with-http_ssl_module --with-http_spdy_module --with-http_realip_module --with-http_addition_module --with-http_xslt_module --with-http_image_filter_module --with-http_geoip_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_random_index_module --with-http_secure_link_module --with-http_degradation_module --with-http_stub_status_module --with-http_perl_module --with-mail --with-mail_ssl_module --with-pcre --with-debug --add-module=/builddir/build/BUILD/nginx-1.6.0/modsecurity-2.8.0/nginx/modsecurity --add-module=/builddir/build/BUILD/nginx-1.6.0/ngx_cache_purge-2.1 --with-cc-opt='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic' --with-ld-opt=-Wl,-E

"
