Varnish configuration for different CMS on one server

August 7, 2016 872 views
Caching CMS WordPress CentOS

Hello,

I have CentOS 7 server with Varnish installed on front end, I have 2 Wordpress sites there and I want to add one Prestashop site, but my server is configured with one .vcl file and that's for all sites on the server (setup for Wordpress), now I wonder how to configure .vcl to support Prestashop, I found this and I want to implement it, but I wonder how to append that to my varnish config: https://github.com/CleverCloud/varnish-examples/blob/master/prestashop.vcl - any help would be appreciated.

Kind regards,
Milan Bozic.

2 Answers

This would be a good place to start. Prestashop users here have shared several varnish config files while working through getting varnish up and running properly with Prestashop. Assuming a different path or domain will be used for WordPress vs Prestashop it should mostly be a matter of copying in the known working rules for the paths prestashop will be using.

Thanks for your answer, I am very good with using google and gone trough those and other config files, thing is, I can't make any of them to work with my config, can't implement that in my varnish config, varnish won't start when I add any of those codes. I could maybe copy paste my "far beyond long" whole varnish config here if anyone who is expert for it would like to take a look and to help me out with this?

Kind regards,
Milan Bozic.

Have another answer? Share your knowledge.