Reputation: 69
I wan to run multiple instances of varnish on single server and each instance will work for each website, one wp, another drupal and joomla, etc. So i want ability to create multiple VLCs for each site. I can purge cache from all backends once I get this to work. Please help with this. Linux server.
Upvotes: 2
Views: 3225
Reputation: 281
Check /etc/default/varnish
it has the ability to have different listening IP:port combinations and seperate VCLs.
Ideal if you have WordPress on 1.1.1.1:80 and drupal on 1.1.1.2:80 etc etc
why ? this will have you NOT mix up various rules for Drupal/WordPress etc.. in one VCL. You can have /etc/varnish/wordpressrules.vcl , /etc/varnish/drupalrules.vcl etc..
(you can even include general vcl's in your xrules.vcl)
Upvotes: 0
Reputation: 922
Better you create multiple VHOSTS in Varnish.
https://www.varnish-software.com/blog/virtual-hosts-varnish
Upvotes: 1