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.
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