Is it possible for Varnish to parse the hostname to determine which backend to use? I'd like to avoid having to do:
if (url = 'backend1') {
set req.backend = backend1;
}
.. for all of them.
I'd like to be able to do something like this:
set req.backend = regsub(req.http.Host, "^.*([^.]+)\.mydomain\.com$", "\1");
.. but that doesn't work.