Varnish with apache

Configure Varnish For Apache Web Server

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

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

curl apache

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

curl apache output

You’re done



Please enter your comment!
Please enter your name here

2 × 2 =