Hi, Got good link here <a href="http://kly.no/varnish/regex.txt">http://kly.no/varnish/regex.txt</a><div><br></div><div><br></div><div>Zeeshan<br><br><div class="gmail_quote">On Mon, Aug 13, 2012 at 1:52 AM, Zeeshan Ali Shah <span dir="ltr"><<a href="mailto:zeeshan@infoshield.info" target="_blank">zeeshan@infoshield.info</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi, Thanks alot for help .. <div><br></div><div>what if we want to check specific </div><div>1) specific plugin lets say postie in wordpress ?</div>
<div>2) all of url under plugin ? </div><div><br></div><div><br></div><div>
thanks in advance. </div><div><br></div><div>BR</div><span class="HOEnZb"><font color="#888888"><div><br></div></font></span><div><span class="HOEnZb"><font color="#888888">Zeeshan</font></span><div><div class="h5"><br><br>
<div class="gmail_quote">On Tue, Aug 7, 2012 at 10:48 PM, Jonathan Hursey <span dir="ltr"><<a href="mailto:jonathan.hursey@adrevolution.com" target="_blank">jonathan.hursey@adrevolution.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">oops... I knew that<div><div><br><br><div class="gmail_quote">On Tue, Aug 7, 2012 at 3:45 PM, Hugo Cisneiros (Eitch) <span dir="ltr"><<a href="mailto:hugo.cisneiros@gmail.com" target="_blank">hugo.cisneiros@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>On Mon, Aug 6, 2012 at 9:13 PM, Jonathan Hursey<br>
<<a href="mailto:jonathan.hursey@adrevolution.com" target="_blank">jonathan.hursey@adrevolution.com</a>> wrote:<br>
> if (req.http.host == ('^(cdn)\..+\.+')<br>
> {<br>
> set req.backened = cdnserver<br>
> }<br>
<br>
</div>Use the "~" symbol when using regex while comparing[1].<br>
<br>
This should work:<br>
<br>
if (req.http.host ~ "^cdn\.") {<br>
set req.backend = be_cdnserver;<br>
}<br>
<br>
[1] <a href="https://www.varnish-cache.org/docs/3.0/reference/vcl.html" target="_blank">https://www.varnish-cache.org/docs/3.0/reference/vcl.html</a><br>
<span><font color="#888888"><br>
--<br>
[]'s<br>
Hugo<br>
<a href="http://www.devin.com.br" target="_blank">www.devin.com.br</a><br>
</font></span><div><div><br>
_______________________________________________<br>
varnish-misc mailing list<br>
<a href="mailto:varnish-misc@varnish-cache.org" target="_blank">varnish-misc@varnish-cache.org</a><br>
<a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" target="_blank">https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc</a><br>
</div></div></blockquote></div><br>
</div></div><br>_______________________________________________<br>
varnish-misc mailing list<br>
<a href="mailto:varnish-misc@varnish-cache.org" target="_blank">varnish-misc@varnish-cache.org</a><br>
<a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" target="_blank">https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc</a><br></blockquote></div><br></div></div></div>
</blockquote></div><br></div>