nginx.conf
http {
upstream test {
server 127.0.0.1:10001;
server 127.0.0.1:10002;
# 生产建议开ip_hash
ip_hash;
}
location / {
root html;
proxy_pass http://test;
index index.html index.htm;
}