Varnish with apache

Configure Varnish To Work With Apache On CentOS 7

I have already installed Varnish On CentOS 7 with Apache web server. I’m going to configure Varnish to work with Apache.

Check Out : Install Varnish Cache To Speed Up Apache Performance

By default, Apache listen on Port 80. In previous article, I have configured Varnish to lget content on Port 8080.

Step 1 : So you need to change the Apache port to 8080 in /etc/httpd/conf/httpd.conf

Changed Listen 80 to Listen 8080

Step 2 : Restart the Apache and Varnish Service

systemctl restart httpd && systemctl restart varnish

Check Out : Install Memcached

Step 3 : Now verify Varnish & Apache working together.

curl -I http://192.168.185.143

This is my Apache Server ip which i have changed in /etc/varnish/default.vcl

Check Out : How To Hide Apache Server Name

The output should be looks like

You’re done

Sponsored

LEAVE A REPLY

Please enter your comment!
Please enter your name here