protected function _vcl_sub_allowed_hosts_regex()
{
$tpl = <<<EOS
# if host is not allowed in magento pass to backend
if (req.http.host !~ "{{allowed_hosts_regex}}") {
return (pass);
}
EOS;
return $this->_formatTemplate($tpl, array('allowed_hosts_regex' => $this->getAllowedHostsRegex()));
}