Monday, February 21, 2022

Deploy Varnish Cache with Apache On Rocky Linux 8.5

 in This Tutorial you will Learn " How To Install Varnish Cache with Apache on Rocky Linux 8.5"

Varnish is a proxy server focused on HTTP caching. It's designed as an HTTP accelerator and can act as reverse proxy for your web server Apache or Nginx. Varnish has been used for high-profile and high-traffic websites, including Wikipedia, The Guardian, and the New York Times.

Apache is the most widely used web server software.
_________________________________________________________________________________________
Server - Os:  Rocky Linux 8.5  64Bit      |    IP -192.168.1.20        |     Hostname - www.primaryhost.com
_________________________________________________________________________________________
cat /etc/system-release ; sestatus ; hostname ; hostname -I ; dnf groupinstall "Development Tools" -y
dnf install httpd -y
nano  /etc/httpd/conf/httpd.conf
Listen 8080
apachectl configtest
systemctl start httpd ; systemctl enable httpd
firewall-cmd --zone=public --add-service=http --permanent ; firewall-cmd --reload

touch /var/www/html/test.html
curl -I http://localhost:8080/test.html

dnf module disable varnish -y ; dnf install epel-release -y
curl -s https://packagecloud.io/install/repositories/varnishcache/varnish70/script.rpm.sh | bash
dnf install varnish -y
systemctl start varnish ; systemctl enable varnish ; systemctl status varnish
varnishd -V
nano /usr/lib/systemd/system/varnish.service

systemctl daemon-reload ; systemctl restart varnish ; systemctl status varnish
curl -I http://localhost/test.html
ss -lnpt | grep 80
_________________________________________________________________________________________


No comments:

Post a Comment