r4289 - branches/2.0/varnish-cache/bin/varnishd

tfheen at projects.linpro.no tfheen at projects.linpro.no
Thu Oct 8 13:18:31 CEST 2009


Author: tfheen
Date: 2009-10-08 13:18:31 +0200 (Thu, 08 Oct 2009)
New Revision: 4289

Modified:
   branches/2.0/varnish-cache/bin/varnishd/varnishd.1
Log:
Merge r4106: varnishd.1: fix regular expression examples



Modified: branches/2.0/varnish-cache/bin/varnishd/varnishd.1
===================================================================
--- branches/2.0/varnish-cache/bin/varnishd/varnishd.1	2009-10-08 11:10:40 UTC (rev 4288)
+++ branches/2.0/varnish-cache/bin/varnishd/varnishd.1	2009-10-08 11:18:31 UTC (rev 4289)
@@ -658,14 +658,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