Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nginx: [emerg] invalid parameter "purge_all" #3

Open
szabyka opened this issue Feb 7, 2022 · 1 comment
Open

nginx: [emerg] invalid parameter "purge_all" #3

szabyka opened this issue Feb 7, 2022 · 1 comment

Comments

@szabyka
Copy link

szabyka commented Feb 7, 2022

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?

@gnif
Copy link

gnif commented Jun 12, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants