Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
share|improve this question

1 Answer 1

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"
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.