Nginx之ip_hash

根据用户访问者的IP,永远只会分发到同一台主机。

配置:

updtream appserver{
    ip_hash;
    server 192.168.0.100;
    server 192.168.0.101;
}
Last modification:August 12th, 2019 at 09:41 am
If you think my article is useful to you, please feel free to appreciate

Leave a Comment