Can I setup Varnish for one Subdomain and block it for all other Domains on my server?
Will this code work?
backend magento244.example.com {
.host = "magento244.example.com";
.port = "8080";
.first_byte_timeout = 600s;
.probe = {
.url = "/health_check.php";
.timeout = 2s;
.interval = 5s;
.window = 10;
.threshold = 5;
}
}
if (req.http.host == 'www.example.com') {
return (pass);
}