In this tutorial, I will show you " How to install Varnish 7 in front of Nginx on Rocky Linux 8.5
Varnish Cache is a web application accelerator also known as a caching HTTP reverse proxy.
NGINX is a web server that also acts as an email proxy, reverse proxy, and load balancer.
_________________________________________________________________________________________
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 module disable varnish
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
nano /usr/lib/systemd/system/varnish.service
ExecStart=/usr/sbin/varnishd -a :80 -a localhost:8443,PROXY -p feature=+http2 -f /etc/varnish/default.vcl -s malloc,2g
systemctl daemon-reload ; systemctl restart varnish
dnf install nginx -y
nano /etc/nginx/nginx.conf
listen 8080 default_server;
listen [::]:8080 default_server;
nginx -t
systemctl restart nginx ; systemctl status nginx
curl -I http://192.168.1.20
_________________________________________________________________________________________
Monday, February 21, 2022
Deploy Varnish 7 for Nginx on Rocky Linux 8
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment