oops... I knew that<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 class="im">On Mon, Aug 6, 2012 at 9:13 PM, Jonathan Hursey<br>
<<a href="mailto:jonathan.hursey@adrevolution.com">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 class="HOEnZb"><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 class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
varnish-misc mailing list<br>
<a href="mailto:varnish-misc@varnish-cache.org">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>