Nginx load balancing configuration

Recommended for you: Get network issues from WhatsUp Gold. Not end users.

The domain name pointing to the Nginx server

Access to www.test.com will be forwarded to the 192.168.1.22,192.168.1.23

user  nobody nobody;
worker_processes  1;


events {
    worker_connections  1024;
}


http {
    include       mime.types;
    default_type  application/octet-stream;



    sendfile        on;

    keepalive_timeout  65;
    
    upstream www.test.com {
    server 192.168.1.22:80;
    server 192.168.1.23;   

    }

    server {
        listen       80;
        server_name  www.test.com;



        location / {
            proxy_pass  ;
        }


        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   html;
        }

    }

}


Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download

Posted by Wythe at January 22, 2014 - 10:04 AM