Nginx Load Balancer Config

http {
	upstream myproject {
		server 10.0.0.2:8000 weight=2;
		server 10.0.0.3:8000 weight=2;
		server 10.0.0.4:8000 weight=2;
	}

	server {
		listen 80;
		server_name .mydomain.com
		location / {
			proxy_pass http://myproject;
		}
	}
}

Leave a Reply