ngx_cache_purge + query string

Indo Php iptablez at yahoo.com
Mon May 5 10:55:27 UTC 2014


Thanks!

On Monday, May 5, 2014 5:35 PM, Piotr Sikora <piotr at cloudflare.com> wrote:
 
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

_______________________________________________
nginx mailing list
nginx at nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20140505/1ede47e2/attachment.html>


More information about the nginx mailing list