Varnish is a HTTP accelerator that can really lighten up the load of your server. It efficiently cache the high-dynamic pages of your site and serve it quickly.

To install Varnish 3 in CentOS 7, you can use the following instructions. (actually you can install varnish via the simple command ‘yum install varnish’ but it will install version 4.0 instead of version 3.0):

After you install varnish3, you can find the default configuration in /etc/sysconfig directory and the default .VCLs at /etc/varnish

Now, if you are looking for Varnish 3 configuration for WordPress, you can use the following .VCL. It is the collection of configuration that I gather from various sources and tested it in production.

Take note, the configuration is intended for version 3 of Varnish and I’m planning to upgrade to Varnish 4.0. However, I need to adjust the following settings to be compatible with the new version of Varnish. I will try to post the version 4 configuration later. For now, here’s the setting I use that works on WordPress website.

You can now use this configuration by placing it in your varnish DAEMON_OPTS as shown below.

If you have any question regarding this configuration, feel free to leave them in the comment section and I will try to answer your queries.

If you want me to install and configure Varnish for your website, just contact me thru my email and let’s discuss the process, my rate and services.

0 0 votes
Article Rating
Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Inline Feedbacks
View all comments