Mikkel Høgh skrev:

> In http://varnish.projects.linpro.no/wiki/VCLExampleRemovingSomeCookies,
> the example shows removing cookies with regular expressions via the
> regsub function which I can't seem to find documentation on.
> Is there a similar function just for checking whether there's a match,
> or even better, a way to check this that doesn't involve regular
> expressions?

in vcl_revc you can do stuff like:

if (req.http.cookie ~ "foo.*bar|bar.*foo") {
        lookup;
}

-- 
Per Buer - Leder Infrastruktur og Drift - Redpill Linpro
Telefon: 21 54 41 21 - Mobil: 958 39 117
http://linpro.no/ | http://redpill.se/

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
varnish-misc mailing list
varnish-misc@projects.linpro.no
http://projects.linpro.no/mailman/listinfo/varnish-misc

Reply via email to