Is there a way to define lists of domains in Varnish VCL language? I suppose something similar for ACLs. I would like to do something like this (using ACLs as an example).
acl website_list {
'(www\.)?domain.tld';
'(www\.)?domain2.tld';
}
...
if(req.http.Host ~ website_list) return(lookup);
I could just use separate RegEx tests but it isn't very re-usable if I want to use those domains somewhere else in the VCL.
Thanks!