[Varnish] #777: Documentation on regex with new if parser
Varnish
varnish-bugs at varnish-cache.org
Wed Sep 15 22:08:18 CEST 2010
#777: Documentation on regex with new if parser
-------------------+--------------------------------------------------------
Reporter: hp197 | Type: documentation
Status: new | Priority: lowest
Milestone: | Component: documentation
Version: trunk | Severity: minor
Keywords: |
-------------------+--------------------------------------------------------
I noticed the if parsing changed.
But now my regex check doesn't work anymore
{{{
if ( !req.http.X-Forwarded-For ~ "^(192\.168\.2\.[0-9]{1,3})$" ) {
remove req.http.Cache-Control;
}
}}}
This gives me a vcl compilation error on the current revision.
Is this not implemented in the new parser yet or is the syntax changed?
Thanks (for the second time today)
--
Ticket URL: <http://www.varnish-cache.org/trac/ticket/777>
Varnish <http://varnish-cache.org/>
The Varnish HTTP Accelerator
More information about the varnish-bugs
mailing list