【Nginx】负载配置

【Nginx】负载配置

upstream gateway {  
    ip_hash;   
    server 10.176.10.100:8765;
    server 10.176.10.200:8765;
}
location ~ ^/api {
    proxy_pass http://gateway;
}
原文地址:https://www.cnblogs.com/yangchongxing/p/15662424.html