invalid ban url syntax

Baptiste bedis9 at gmail.com
Tue Sep 13 07:43:39 CEST 2011


Hi,

You also removed the " after your domain name.

cheers

On Tue, Sep 13, 2011 at 5:37 AM, AD <straightflush at gmail.com> wrote:
> 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.
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at varnish-cache.org
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
>




More information about the varnish-misc mailing list