Simple session persistence base on IP address?

ryo sato sato at itboost.co.jp
Wed Oct 29 03:27:05 MSK 2008


 > Have any more simple way to do session persistence base on client IP
 > with nginx?


Use "$remote_addr" var.
Like this.

     upstream www {
         server x.x.x.x:80 ;
         server y.y.y.y:80 ;
         hash   $remote_addr;
     }



-- 
Ryo Sato





More information about the nginx mailing list