Hi,

On 08/30/10 08:25, Tollef Fog Heen wrote:
> ]] Frank Gruellich 
> | r...@floor [~] $ cat foo.vcl
> | sub vcl_recv {
> |         if (now)
> |         {
> |                 set req.backend = localhost;
> |         } else {
> |                 set req.backend = localhost;
> |         }
> | }
> 
> This VCL snippet doesn't make any sense; what are you trying to
> accomplish?

Yes, I'm aware of this.  I tried to strip down my real problem VCL, but
I just noticed that the real configuration isn't much bigger.  This is
the offending part:

sub vcl_miss {
        log "MISS: " now req.url;
        return (fetch);
}

sub vcl_hit {
        if (!obj.cacheable) {
                return (pass);
        }
        log "HIT: " now req.url;
        return (deliver);
}

I'm still getting a similar error message:

Message from VCC-compiler:
Expected ';' got 'now'
(program line 491), at
(input Line 123 Pos 22)
        log "MISS: " now req.url;
---------------------###---------
Running VCC-compiler failed, exit 1

"now" seems to be gone...

Kind regards,
-- 
Navteq (DE) GmbH
Frank Gruellich
Map24 Systems and Networks

Duesseldorfer Strasse 40a
65760 Eschborn
Germany

Phone:      +49 6196 77756-414
Fax:        +49 6196 77756-100

HRB 46215, Local Court Frankfurt am Main
Managing Directors: Thomas Golob, Hans Pieter Gieszen, Martin Robert Stockman
USt-ID-No.: DE 197947163

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
varnish-misc mailing list
[email protected]
http://lists.varnish-cache.org/mailman/listinfo/varnish-misc

Reply via email to