Error compiling VCL using varnish-2.1.2 (Regexp compilation error: nothing to repeat)

Indranil Chakravorty indranilc at rediff-inc.com
Mon Oct 4 15:13:29 CEST 2010


Hi,   I am getting the following errro while compiling my vcl file. Would anyone be able to help me out? Thanks.
Message from VCC-compiler:Regexp compilation error:
nothing to repeat
(input Line 497 Pos 69)                if (req.url ~ "^/location-staticmap/*" || req.url ~ "^/staticmap%3F*" || req.url ~ "^/wms/*") {--------------------------------------------------------------------#################--------------------------
The line is copied below, position 69 happens to be the third double quote (") in the line, the one which is at the beginning of  staticmap.
        if (req.http.host ~ "^example.sample.com") {                if (req.url ~ "^/location-staticmap/*" || req.url ~ "^/staticmap%3F*" || req.url ~ "^/wms/*") {                        set obj.http.Cache-Control = "max-age=432000";                        set obj.ttl = 5d;                }                return(deliver);        }
Thanks,
Neel

 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20101004/482e5e21/attachment-0003.html>


More information about the varnish-dev mailing list