How to match domains starting with "admin"

Abraham Cruz Sustaita abraham.sustaita at
Mon Jul 9 18:57:38 CEST 2012

I have several sites on my servers, so I need to configure one admin
subdomain for each one. However, I don't want to make:

if (req.http.Host ~ "(?i)(||$") {}

Can I do this only with one regular expression of the type (admin\.(.*)) ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the varnish-misc mailing list