Varnish Purge Problem

Daniel Carrillo daniel.carrillo at gmail.com
Thu Nov 27 09:08:01 CET 2014


2014-11-27 2:25 GMT+01:00 Thiago Paulino <thiagop1985 at gmail.com>:

> Hello Guys,
>
> I am using varnish 4.0.1 on a debian wheezy.
>
> I have one process deploy where I run this command to Purge all itens
> cached on my varnish but did not work
>
> command :
>
> curl -s -o -S -X PURGE -H "x-forwarded-for:127.0.0.1,ip1,ip2,ip3"
> http://site.com/*
>
> curl -s -o -S -X PURGE -H "x-forwarded-for:127.0.0.1,ip1,ip2,ip3"
> http://site.com/
>
>
> If I run this command to purge a specific object it's works. Anyone have
> ideias about this problem or the correct way to purge all itens cached ?
>
> curl -s -o -S -X PURGE -H
> "x-forwarded-for:127.0.0.1,177.52.130.199,177.52.130.207,177.52.130.208"
> http://site.com.br/file.gif
>

Hello.

Purge doesn't work in this way, if you want to remove more than one url you
need to use bans:

https://www.varnish-cache.org/docs/4.0/users-guide/purging.html

kind regards.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20141127/ec5ffde8/attachment.html>


More information about the varnish-misc mailing list