Adding Varnish to Apache

Varnish is a high-performance HTTP accelerator that not only assists in reducing the overall server load, but also serves to improve website response times. For this reason, it has become very popular; as a consequence of this, we will look at the process of setting up Varnish in conjunction with the Apache web server.

Before we begin, it will be assumed that Apache is installed. Moreover, you should be aware that completing the next steps requires access to the EPEL repository. Please refer to Chapter 4, Troubleshooting Package Management and System Upgrades, for instructions on how to download and install the EPEL repository on CentOS 7.

So when you are ready, let's begin by installing Varnish:

# yum install varnish

Get Troubleshooting CentOS now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.