<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2014-11-27 2:25 GMT+01:00 Thiago Paulino <span dir="ltr"><<a href="mailto:thiagop1985@gmail.com" target="_blank">thiagop1985@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div><div dir="ltr"><div>Hello Guys,</div><div><br></div><div>I am using varnish 4.0.1 on a debian wheezy.</div><div><br></div><div>I have one process deploy where I run this command to Purge all itens cached on my varnish but did not work</div><div><br></div><div>command :</div><div><br></div><div>







<p>curl -s -o -S -X PURGE -H "x-forwarded-for:127.0.0.1,ip1,ip2,ip3" <a href="http://site.com/*" target="_blank">http://site.com/*</a><br></p><p>curl -s -o -S -X PURGE -H "x-forwarded-for:127.0.0.1,ip1,ip2,ip3" <a href="http://site.com/" target="_blank">http://site.com/</a><br></p><p><br></p><p>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 ?</p></div><div>







<p><span>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" <a href="http://site.com.br/file.gif" target="_blank">http://site.com.br/file.gif</a></span></p></div></div></div></div></div></blockquote><div><br></div><div>Hello.</div><div><br></div><div>Purge doesn't work in this way, if you want to remove more than one url you need to use bans:</div><div><br></div><div><a href="https://www.varnish-cache.org/docs/4.0/users-guide/purging.html">https://www.varnish-cache.org/docs/4.0/users-guide/purging.html</a></div><div><br></div><div>kind regards.</div></div></div></div>