On Tue, Mar 31, 2020 at 6:06 PM Dridi Boukelmoune <[email protected]> wrote: > > if ((req.http.host ~ "(domain.com) || (dev.domain.com)")) { > > No matter how you look at it this if statement is broken. > > You can either go for this: > > > if (req.http.host ~ "^(dev\.)?domain\.com") > > Or you can do this: > > > if (req.http.host == "domain.com" || req.http.host == "dev.domain.com") > > The ~ operator in this context matches regular expressions, and your > regex doesn't make sense.
Thanks for clearing this up! _______________________________________________ varnish-misc mailing list [email protected] https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
