首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > 这个模块实现nginx的会话cookie会话粘性。如果cookie缺席,该模块将成为一个正常的循环的上游模块。

这个模块实现nginx的会话cookie会话粘性。如果cookie缺席,该模块将成为一个正常的循环的上游模块。

资 源 简 介

nginx_upstream_jvm_route This module achieves session stickiness with the session cookie. If the session is not in the cookie or URL, the module will be a normal Round-Robin upstream module. INSTALLATION cd nginx-0.7.59 # or whatever patch -p0 < /path/to/this/directory/jvm_route.patch compile nginx with the following addition option: --add-module=/path/to/this/directory ## EXAMPLE ## 1.For resin ``` upstream backend { server 192.168.0.100 srun_id=a; server 192.168.0.101 srun_id=b; server 192.168.0.102 srun_id=c; server 192.168.0.103 srun_id=d; jvm_route $cookie_JSESSIONID; } ``` detail 2.For tomcat ``` upstream backend { server 192.168.0.100 srun_id=a; server 192.168.0.101 srun_id=b; server 192.168.0.102 srun_id=c; server 192.168.0.103 srun_id=d; jvm_route $cookie_

文 件 列 表

nginx_upstream_jvm_route
README
jvm_route.patch
config
ngx_http_upstream_jvm_route_module.c
CHANGES
VIP VIP
0.176826s