Thanks both of these worked: ban req.http.host == "www.domain.com" && req.url ~ "\\.png" 200 0
ban req.http.host == "www.domain.com" && req.url ~ .png 200 0 On Tue, Sep 13, 2011 at 8:43 AM, Hauke Lampe <[email protected]> wrote: > On 09/13/2011 05:37 AM, AD wrote: > > > hello, when trying to ban a req.url from the CLI i get the following > error, > > any ideas? > > > Syntax Error: Invalid backslash sequence > > Which version of varnish do you use? > > You might have to use double backslashes. See: > https://www.varnish-cache.org/trac/ticket/755 > > > Hauke. > > > _______________________________________________ > varnish-misc mailing list > [email protected] > https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc >
_______________________________________________ varnish-misc mailing list [email protected] https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
