Nexcessnet_Turpentine_Model_Varnish_Configurator_Abstract::_vcl_sub_allowed_hosts_regex PHP Method

_vcl_sub_allowed_hosts_regex() protected method

Get the Host normalization sub routine
protected _vcl_sub_allowed_hosts_regex ( ) : string
return string
    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()));
    }