varnish syntax

Enno van Amerongen enno at tty.nl
Thu Jun 16 14:35:19 CEST 2011


try

sub vcl_recv {
    if (req.url ~ "^/munin") {
        return (pass);
    }
}

http://www.varnish-cache.org/docs/2.1/reference/vcl.html

Robert Recchia wrote:
> I run word press and munin on the same server - i don't want varnish
> caching anything /munin so in older varnish releases all i did was add
> this to the vcl file
>
> sub vcl_recv {
>
> if (req.url ~ "munin") {
>
>         pass;
>
>         }
>
>
> it seems varnish-2.1.5-1 does not like this syntax and wont start.
> Does anyone know the equivilant to what it would be in this version
>
>
>
>   






More information about the varnish-misc mailing list