Hacking SecurityLinuxSecurity VulnerabilityTools Hacking

Install Varnish cache HTTP CentOS 7

Varnish HTTP caching

Install Varnish cache HTTP CentOS 7



Varnish cache HTTP is a proxy server focused on HTTP caching. the high-performance HTTP accelerator, can act as reverse proxy for your web server Apache or Nginx.


Install Varnish cache HTTP on CentOS 7


Install EPEL repository using the following command.

yum -y install epel-release


Now install Varnish from the EPEL repository using yum command below.

yum -y install varnish



After the installation is complete, start Varnish and add it to launch at system boot using the systemctl commands below.

systemctl start varnish
systemctl enable varnish



Configure Varnish as a reverse proxy for Apache

So Varnish is installed, and now we will configure it as a reverse proxy for the Apache web server. Varnish will run on HTTP port 80 by default.

Go to the Varnish configuration directory and edit the default configuration in ‘default.vcl’.

cd /etc/varnish
nano default.vcl
backend default {
     .host = "";
     .port = "8080";


nano varnish.params


Save and exit.

Now restart Varnish and check stats using the netstat command.

systemctl restart varnish
netstat -plntu


Install Varnish cache HTTP CentOS 7


CyberAttack Tools to Improve Security

Janusec Application Gateway


Ahmed Ferdoss

at the morning I'm a Political Science men and at night I'm a Ethical Hacker that's it all .. !!

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button