upstream server_www.xxx.com_backend {
server 192.168.1.128:8081 weight=1;
server 192.168.1.128:8082 weight=2;
}
server {
listen 80;
server_name www.xxx.com;
...
location / {
proxy_pass http://server_www.xxx.com_backend;
...
}
...
}