How to match domains starting with "admin"

Abraham Cruz Sustaita abraham.sustaita at buscacorp.com
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)(admin.domain1.com|admin.domain2.com|
admin.domainN.com)?$") {}

Can I do this only with one regular expression of the type (admin\.(.*)) ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20120709/20e04faf/attachment.html>


More information about the varnish-misc mailing list