ngx_cache_purge + query string
Piotr Sikora
piotr at cloudflare.com
Mon May 5 10:35:21 UTC 2014
Hello,
> Below is my config
>
> location ~ /purge(/.*) {
> allow 127.0.0.1;
> allow 10.10.0.0/24;
> deny all;
> proxy_cache_purge one backend$1;
> }
$1 doesn't contain query strings, you should use:
proxy_cache_purge one backend$1$is_args$args;
or alternatively, use "same location" configuration. Please refer to
the documentation for details.
Best regards,
Piotr Sikora
More information about the nginx
mailing list