Nginx 负载均衡配置

upstream hcon.com {
server localhost:8081 weight=10;
server localhost:8082 weight=2;
server localhost:8083;
}
server {
listen 80;
server_name localhost;
location / {
proxy_pass http://hcon.com
}
}