[master] 652cdeb Showcase !~ in the regex example
Per Buer
perbu at varnish-cache.org
Wed Aug 22 09:13:57 CEST 2012
commit 652cdeb92ff3bd68d2485ae2f07f585dc75da1a4
Author: Per Buer <perbu at varnish-software.com>
Date: Wed Aug 22 09:13:36 2012 +0200
Showcase !~ in the regex example
diff --git a/doc/sphinx/reference/vcl.rst b/doc/sphinx/reference/vcl.rst
index 736c7c0..eee9c0b 100644
--- a/doc/sphinx/reference/vcl.rst
+++ b/doc/sphinx/reference/vcl.rst
@@ -404,7 +404,8 @@ insensitivity* add the flag within parens following a question mark,
like this:
::
- if (req.http.host ~ "(?i)example.com$") {
+ # If host is NOT example dot com..
+ if (req.http.host !~ "(?i)example.com$") {
...
}
More information about the varnish-commit
mailing list