我的清漆反向代理设置存在问题。我们有一个指向不同IP的域
root@vproxy:~# service varnish restart Message from VCC-compiler:
Backend host "xxx.xxxxxx.net": resolves to too many addresses. Only one IPv4 and one IPv6 are allowed.
Please specify which exact address you want to use, we found all of these:
128.x.x.1
128.x.x.2
128.x.x.3
128.x.x.4
('input' Line 17 Pos 13)
.host = "xxx.xxxxxx.net";
------------#################-
Running VCC-compiler failed, exited with 2
VCL compilation failed * Syn
tax check failed, not restarting
我们希望清漆自动从多个IP中使用一个IP。我该如何实现。
您必须一一设置后端(或由记录为1 A的域设置)。您的问题已在清漆文档中得到完全解答:https://varnish-cache.org/docs/trunk/users-guide/vcl-backends.html
要使用具有相同角色的多个后端,您需要将它们与Directors([在文档的同一页上一起使用]。)