update PURGE section
This commit is contained in:
parent
11513408d6
commit
2ad6088305
|
@ -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"));
|
||||
# }
|
||||
|
|
Loading…
Reference in a new issue