Regex question

Jonathan Hursey jonathan.hursey at adrevolution.com
Tue Aug 7 02:13:12 CEST 2012


if (req.http.host == ('^(cdn)\..+\.+')
  {
      set req.backened = cdnserver
  }


Something like that will work


On Mon, Aug 6, 2012 at 6:53 PM, Zeeshan Ali Shah <zeeshan at infoshield.info>wrote:

> Hi, sorry it is more related with regex .. any hint ?
>
> I want all domain starting from cdn  to use certain backend. no matter
> what the tld is for example all :
>
> cdn.xy.asda.com
> cdn.sda.com
> cdn.cdad.asda.ada.ad.net
>
>
> what is the suitable regex for above?
>
>
> thanks in advance
> BR
>
>
> Zeeshan
>
>
>
>
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at varnish-cache.org
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20120806/ba76a031/attachment.html>


More information about the varnish-misc mailing list