Hi guys,
I am trying to restrict some access to my Varnish. I want to accept only
requests for domain1.com and domain2.com, but deny access to server's IP
address. This is my vcl_recv:
if (req.http.host ~ ".*domain1.*")
{
set req.backend = domain1;
}
elseif (req.http.host ~ ".*domain2.*")
{
set req.backend = domain2;
}
else
{
error 405 "Sorry!";
}
Am I doing the right way? Do you have any suggestion?
Thank you,
Roberto.
_______________________________________________
varnish-misc mailing list
[email protected]
http://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc