[Varnish] #1302: Wrong syntax of case insensitive match at the Example on the documentation
Varnish
varnish-bugs at varnish-cache.org
Tue May 14 00:09:34 CEST 2013
#1302: Wrong syntax of case insensitive match at the Example on the documentation
---------------------------------+---------------------------
Reporter: bnegrao | Type: defect
Status: new | Priority: normal
Milestone: | Component: documentation
Version: 2.1.0 | Severity: normal
Keywords: documentation error |
---------------------------------+---------------------------
Hello, the Example on the page [https://www.varnish-
cache.org/docs/2.1/faq/general.html#why Why], on section "Why are regular
expressions case-sensitive?" shows a wrong syntax in the example code
snippet for case insensitive match. It forgets the () surrounding '?i' and
that takes us to a compilation error on varnish start.
Where it shows:
{{{
if (req.http.host ~ "?iexample.com$") {
...
}
}}}
Should be:
{{{
if (req.http.host ~ "(?i)example.com$") {
...
}
}}}
Regards,
Bruno.
--
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1302>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator
More information about the varnish-bugs
mailing list