After googling and briefly browsing varnish docs, I could not find a reference to this. Can I do for example the following in varnish vcl?
include sites-enabled/*.vcl
After googling and briefly browsing varnish docs, I could not find a reference to this. Can I do for example the following in varnish vcl?
include sites-enabled/*.vcl
No.
But as phk said, you can use the following trick :
https://www.varnish-cache.org/lists/pipermail/varnish-misc/2013-February/022794.html
The easy way is to:
cd directory
ls *.vcl | awk '{printf "include \"%s\"\n"}' > .all_includes.vcl
Then
include "directory/.all_includes.vcl"