Varnish configuration for different CMS on one server


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: - any help would be appreciated.

Kind regards, Milan Bozic.

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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.

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.