Ubuntu 遵循配置指南时出错:找不到符号:';要求后端健康';(预期类型BOOL):

Ubuntu 遵循配置指南时出错:找不到符号:';要求后端健康';(预期类型BOOL):,ubuntu,varnish,digital-ocean,varnish-vcl,Ubuntu,Varnish,Digital Ocean,Varnish Vcl,我遵循了这一点,在运行/etc/init.d/varnish restart之后,出现了以下错误: * Stopping HTTP accelerator varnishd [fail] * Starting HTTP accelerator varnishd [fail] Message from VCC-compiler: Symbol not fo

我遵循了这一点,在运行
/etc/init.d/varnish restart
之后,出现了以下错误:

 * Stopping HTTP accelerator varnishd                                    [fail]
 * Starting HTTP accelerator varnishd                                    [fail]
Message from VCC-compiler:
Symbol not found: 'req.backend.healthy' (expected type BOOL):
('input' Line 44 Pos 9)
    if (req.backend.healthy)
--------###################-

Running VCC-compiler failed, exited with 2

VCL compilation failed
第44行

if (req.backend.healthy)
{
    set req.grace = 60s;
}
else
{
    set req.grace = 30m;
}

我看到这篇文章,似乎认为它与版本有关。我正在Ubuntu 14.04上运行4.0.3版本b8c4a34。

Varnish 4.*与Varnish 3有点不同*

如您所见,req.backend.health不再存在。新的方法是:

标准健康(要求后端提示)