upstream nginx { server 172.31.223.154:5001; server 172.31.223.154:5002; server 172.31.223.154:5003; server 172.31.223.154:5004; server 172.31.223.154:5005; server 172.31.223.154:5006;
} server { listen 6101; server_name 172.31.223.154; location / { proxy_pass http://nginx; index index.html index.htm; }