r4106 - trunk/varnish-cache/bin/varnishd

ssm at projects.linpro.no ssm at projects.linpro.no
Sun Jun 14 13:33:10 CEST 2009


Author: ssm
Date: 2009-06-14 13:33:10 +0200 (Sun, 14 Jun 2009)
New Revision: 4106

Modified:
   trunk/varnish-cache/bin/varnishd/varnishd.1
Log:
varnishd.1: fix regular expression examples

Modified: trunk/varnish-cache/bin/varnishd/varnishd.1
===================================================================
--- trunk/varnish-cache/bin/varnishd/varnishd.1	2009-06-14 10:15:10 UTC (rev 4105)
+++ trunk/varnish-cache/bin/varnishd/varnishd.1	2009-06-14 11:33:10 UTC (rev 4106)
@@ -663,14 +663,14 @@
 Example: Purge all documents where the name does not end with ".ogg",
 and where the size of the object is greater than 10 megabytes.
 .Bd -literal -offset 4n
-req.url !~ "\.ogg" && obj.size > 10MB
+req.url !~ "\\.ogg$" && obj.size > 10MB
 .Ed
 .Pp
 Example: Purge all documents where the serving host is "example.com"
 or "www.example.com", and where the Set-Cookie header received from
 the backend contains "USERID=1663".
 .Bd -literal -offset 4n
-req.http.host ~ "^(www\.)example.com$" && obj.set-cookie ~ "USERID=1663"
+req.http.host ~ "^(www\\.)example.com$" && obj.set-cookie ~ "USERID=1663"
 .Ed
 .Sh SEE ALSO
 .Xr varnishlog 1 ,



More information about the varnish-commit mailing list