NginxFastCGICachePurger icon indicating copy to clipboard operation
NginxFastCGICachePurger copied to clipboard

nginx: [emerg] invalid parameter "purge_all"

Open szabyka opened this issue 3 years ago • 1 comments

When I try to save:

location ~ /purgeall { fastcgi_pass localhost:8001; fastcgi_cache xyz.com; fastcgi_cache_key $uri$is_args$args; fastcgi_cache_purge PURGE purge_all from 127.0.0.1; }

Failed to save configuration file : Configuration is invalid : nginx: [emerg] invalid parameter "purge_all", expected "from" keyword in /etc/nginx/sites-enabled/xyz.com.conf:49 nginx: configuration file /etc/nginx/nginx.conf test failed

nginx version: nginx/1.14.1

Has anyone had the same issue?

szabyka avatar Feb 07 '22 19:02 szabyka

You are using the wrong version of the cache purge module, read the README.md See: https://github.com/torden/ngx_cache_purge

gnif avatar Jun 12 '23 21:06 gnif