"localhost";
}
subvcl_recv
{
if (req.http.host ~ "^neirong.funshion.com") # 匹配域名跳转后台
服务器
{ setreq.backend = neirong; }
if (req.http.host ~ "^game2.funshion.com") # 匹配域名跳转后台服
务器
{ setreq.backend = game2; }
if (req.http.host ~ "^v.funshion.com") # 匹配域名跳转后台服务器
{ setreq.backend = vfunshion; }
else { error 404 "Unknown HostName!"; }
if (req.request == "PURGE") # 不允许非访问控制列表内的 IP 清除
varnish 缓存
{ if (!client.ip ~ purge)
{
error 405 "Not Allowed.";
## 除以上的访问请求,从缓存中查找
return (lookup);