Welcome! Log In Create A New Profile

Advanced

conf of ngx_cache_purge

October 11, 2010 08:34PM
here is my conf:
fastcgi_cache_path /usr/local/nginx/fastcgi_cache levels=1:2 keys_zone=DIGG:10m inactive=2m;

location /
{
fastcgi_cache DIGG;
fastcgi_cache_key $host$uri$is_args$args;
fastcgi_cache_valid 200 302 1h;
fastcgi_cache_valid 301 1d;
fastcgi_cache_valid any 1m;
fastcgi_cache_min_uses 2;
fastcgi_cache_use_stale error timeout invalid_header http_500;
fastcgi_pass unix:/tmp/php-cgi.sock;
#fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fcgi.conf;
}
location ~ /purge(/.*)
{
allow 127.0.0.1;
deny all;
fastcgi_cache_purge DIGG $host$1$is_args$args;
}
nginx -t don't returns any error.
but when i visit http://mydomain/purge/xxx.jpg, it returns me a 404 page.
i checked the error log and found this:


2010/10/11 05:04:25 [emerg] 8915#0: unknown directive "fastcgi_cache_purge" in /usr/local/nginx/conf/nginx.conf:27

is there anybody help me? thanks a lot.
Subject Author Posted

conf of ngx_cache_purge

digginchina October 11, 2010 08:34PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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