谷歌搜索和简要浏览清漆文档后,我找不到对此的引用.我可以在varnish vcl中做以下示例吗?
include sites-enabled/*.vcl
解决方法
没有.
但正如phk所说,你可以使用以下技巧:
https://www.varnish-cache.org/lists/pipermail/varnish-misc/2013-February/022794.html
简单的方法是:
cd directory ls *.vcl | awk '{printf "include \"%s\"\n"}' > .all_includes.vcl
然后
include "directory/.all_includes.vcl"