How to install Varnish on the CentOS Web Panel servers
CWP has a two Varnish options, Single-IP and Multi-IP.

The main difference is, if you have more than a one IP, then you will need to use Varnish Multi-IP.

Install Varnish
1. Login to your CWP.admin
2. go to Apache Settings –> Varnish Cache Server –> click on: Install Varnish

Varnish Single-IP Setup
1. Set the shared IP as 127.0.0.1
2. Set Apache Port to 82
3. Set Varnish IP to all
4. Set Varnish Port to 80
5. Set Storage size according to your needs, default is 1GB

Varnish Multi-IP Setup
1. Click on the link “If you have more than one IP on your server then click here to use Varnish Multiple IP.”
2. Set Apache Port to 82
3. Set Varnish IP to all
4. Set Varnish Port to 80
5. Set Storage size according to your needs, default is 1GB
6. Click on “enable Multi-IPs”

Once you have installed and configured Varnish Multi-IP you will need to rebuild your Virtual Hosts.
7. go to Apache Settings –> Rebuild Apache vHosts
8. Restart Varnish Cache Server