> 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.
>
> 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.
>