ttl problem

Vojtech Levy xlevyv at xlevyv.cz
Thu Jun 5 16:04:46 CEST 2008


> Hi,         (Sorry, my english is bad)
> this is my VCL conf, what is wronk? Varnish didnt starting.
>
> backend default {
>        set backend.host = "xxx.xxx.xxx.xxx";
>        set backend.port = "xxxx";             set obj.ttl = 2d;
> }
> sub vcl_recv {
> if (req.request == "GET" && req.url ~ 
> "\.(gif|jpg|swf|css|js|html|htm)$") {
>   set obj.ttl = 12h;
>   lookup;
> }
> }
> sub vcl_recv {
> if (req.http.host ~ "^(www.)?xxx.ttd/xxxxxx/.*$") {
>    pass;
> }
> }
> sub vcl_recv {
> if (req.http.host ~ "^(www.)?xxx.ttd/xxxx/xxxxxxx/.*$") {
>    pass;
> }
> }
> sub vcl_recv {
> if (req.http.host ~ "^(www.)?xxx.ttd/xxxx/.*$") {
> set obj.ttl = 1h;
> }
> }
>
> If I disable all [set obj.ttl = xx;] ,varnish start OK.
>



More information about the varnish-commit mailing list