Back to Browse

Nginx high availability with keepalived

4.2K views
Dec 30, 2023
14:37

Configuration files: https://shorturl.at/dglq4 nginx: upstream backend { server 192.168.1.21:80; server 192.168.1.22:80; } server { listen 80 ; location / { proxy_pass http://backend; } } /etc/keepalived/keepalived.conf vrrp_instance VI_1 { state MASTER interface enp0s3 virtual_router_id 55 priority 150 advert_int 1 unicast_src_ip 192.168.1.31 unicast_peer { 192.168.1.32 } authentication { auth_type PASS auth_pass Am@eg65g78!#t } virtual_ipaddress { 192.168.1.70/24 } }

Download

0 formats

No download links available.

Nginx high availability with keepalived | NatokHD