[master] 7f5dbd3 Update for V4 syntax.

Per Buer perbu at varnish-software.com
Thu Mar 20 11:46:59 CET 2014


commit 7f5dbd315095d5d1d8519b88deaad43c237f242a
Author: Per Buer <perbu at varnish-software.com>
Date:   Thu Mar 20 11:42:37 2014 +0100

    Update for V4 syntax.

diff --git a/doc/sphinx/users-guide/vcl-example-acls.rst b/doc/sphinx/users-guide/vcl-example-acls.rst
index 3d0226a..b460bbe 100644
--- a/doc/sphinx/users-guide/vcl-example-acls.rst
+++ b/doc/sphinx/users-guide/vcl-example-acls.rst
@@ -15,20 +15,10 @@ the IP address of the client against an ACL with the match operator.::
   sub vcl_recv {
     if (req.method == "PURGE") {
       if (client.ip ~ local) {
-         return(lookup);
+         return(purge);
+      } else {
+         return(synth(403, "Access denied."));
       }
     } 
   }
   
-  sub vcl_hit {
-     if (req.method == "PURGE") {
-       set obj.ttl = 0s;
-       error 200 "Purged.";
-      }
-  }
-
-  sub vcl_miss {
-    if (req.method == "PURGE") {
-      error 404 "Not in cache.";
-    }
-  }



More information about the varnish-commit mailing list