[3.0] 6ecde6d Showcase !~ in the regex example
Tollef Fog Heen
tfheen at varnish-cache.org
Mon Apr 22 13:27:00 CEST 2013
commit 6ecde6d1d5434c54e4ba81bbf94e380501c40048
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 927f640..c4b4f96 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