sub vcl_recv {
if (req.method == "PURGE") {
# If not allowed then a error 405 is returned
if (! req.http.x-forwarded-for || req.http.x-forwarded-for !~ "1.2.3.4") {
return(synth(405, "This forwarded IP is not allowed to send PURGE requests."));
}
return (purge);
}
}
您可以远程查看本教程清除清漆缓存