Close

Nginx load balancer setup

Edit the following file: /etc/nginx/nginx.conf

       upstream backend {
              #least_conn;
              ip_hash;
              server 192.168.2.160 max_fails=3 fail_timeout=30s;
              server 192.168.2.161 max_fails=3 fail_timeout=30s;
              server 192.168.2.157 max_fails=3 fail_timeout=30s;
        }

        server {
                listen 80;
                location / {
                        proxy_pass http://backend;
                }
        }