Nginx Load Balancer Config

[code]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;
}
}
}[/code]

Leave a Reply

%d bloggers like this: