/cpanel-varnish

Install Varnish on cPanel server to serve static files

Primary LanguageShellGNU General Public License v2.0GPL-2.0

cpanel-varnish

Install Varnish on cPanel server to serve static files.


Installation

wget https://raw.githubusercontent.com/MdNor/cpanel-varnish/master/install.sh
sh install.sh

Get The Setting Right

You can play around with Varnish setting to get best result based on your preferences

nano /etc/varnish/default.vcl

You can validate the setting before applying

varnishd -C -f /etc/varnish/default.vcl

To apply the setting, restart Varnish

service Varnish restart

Uninstall

In case you want to reverse the setting and uninstall Varnish

wget https://raw.githubusercontent.com/MdNor/cpanel-varnish/master/uninstall.sh
sh uninstall.sh