Mailing List Archive

dynamic varnish vhost
Hi here,

We are trying to make varnish loads dynamically vcls contained in a
directory.
the idea behind is:
- drop a new vcl in the directory
- varnish will reload it's configuration

something like:
for URL: http://test.myserver.local:6081 varnish will load vcl from
/home/myserver/test/default.vcl
for URL: http://test2.myserver.local:6081
<http://test.myserver.local:6081/> varnish
will load vcl from /home/myserver/test2/default.vcl

any idea on how to achieve that maybe ?

Thanks a lot !

Regards,
Re: dynamic varnish vhost [ In reply to ]
> any idea on how to achieve that maybe ?

Hello,

You could do that with VCL labels, but don't expect Varnish to lazy
load/include VCLs during an HTTP transaction.

http://varnish.org/docs/5.1/users-guide/vcl-separate.html

Dridi

_______________________________________________
varnish-misc mailing list
varnish-misc@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc