服务器做重定向rewrite (.*) http://ip:xxxx/指向负载服务器,以前没有重定向是用ip_hash解决session的问题,upstream aa {ip_hash;server ip1:xxxx;server ip2:xxxx;}目前试了hash $http_x_forwarded_for;和hash $cookie_jsessionid;都没有达到负载的效果,请问需要如何配置?
一只名叫tom的猫
相关分类