Open szabyka opened 2 years ago
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?
You are using the wrong version of the cache purge module, read the README.md See: https://github.com/torden/ngx_cache_purge
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?