在upstream中添加ip_hash即可
upstream apache_server {
server 192.168.11.101:80 weight=1;
server 192.168.11.102:80 weight=1;
ip_hash;
}
在upstream中添加ip_hash即可
upstream apache_server {
server 192.168.11.101:80 weight=1;
server 192.168.11.102:80 weight=1;
ip_hash;
}