invalid ban url syntax
AD
straightflush at gmail.com
Tue Sep 13 17:09:37 CEST 2011
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 <lampe at hauke-lampe.de> 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
> varnish-misc at varnish-cache.org
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20110913/44f99c7d/attachment-0003.html>
More information about the varnish-misc
mailing list