invalid ban url syntax

AD straightflush at gmail.com
Tue Sep 13 05:37:21 CEST 2011


hello, when trying to ban a req.url from the CLI i get the following error,
any ideas?

ban req.http.host == "www.domain.com" && req.url ~ "\.png"
100 85
Unknown request.
Type 'help' for more info.
Syntax Error: Invalid backslash sequence

Removing backslash

ban req.http.host == "www.domain.com && req.url ~ ".png"
106 25
Wrong number of arguments

Cheers.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20110912/a5b6fd70/attachment-0003.html>


More information about the varnish-misc mailing list