nginx_upstream_hash module

Weibin Yao nbubingo at gmail.com
Wed Sep 23 14:08:31 MSD 2009


dennis cao at 2009-9-22 23:30 wrote:
> dear all:
> can someone give a new module can support the new stable version?
For nginx-0.7.62, this patch may work:

diff -ruN src/http/ngx_http_upstream.h src_hash/http/ngx_http_upstream.h
--- src/http/ngx_http_upstream.h 2009-09-07 17:49:51.000000000 +0800
+++ src_hash/http/ngx_http_upstream.h 2009-09-23 17:34:16.000000000 +0800
@@ -105,6 +105,10 @@

ngx_array_t *servers; /* ngx_http_upstream_server_t */

+ ngx_array_t *values;
+ ngx_array_t *lengths;
+ ngx_uint_t retries;
+
ngx_uint_t flags;
ngx_str_t host;
u_char *file_name;

-- 
Weibin Yao






More information about the nginx mailing list