diff --git a/etc/varnish/sites/example.vcl b/etc/varnish/sites/example.vcl index 13c3d36..c082f13 100644 --- a/etc/varnish/sites/example.vcl +++ b/etc/varnish/sites/example.vcl @@ -7,14 +7,14 @@ sub vcl_recv { if (req.http.host == "example.com" || req.http.host == "www.example.com") { #if (req.method == "PURGE") { - # # Allow from monitoring & hosting08 + # # Allow from some IP addresses # if (client.ip == "1.2.3.4" || client.ip == "4.5.6.7") { # if (req.url == "/_purge_all") { # ban("req.http.host == "+req.http.host+" && req.url ~ ."); - # return(synth(200, "ALL purge cache done")); + # return(synth(200, "ALL purge cache done for "+req.http.host)); # } # ban("req.http.host == "+req.http.host+" && req.url ~ "+req.url); - # return(synth(200, "purge cache done")); + # return(synth(200, "purge cache done for "+req.http.host+" with pattern "+req.url)); # } else { # return(synth(403, "permission denied")); # }