Nginx Version: nginx-1.6.2.tar.gz
Sticky version: nginx-sticky-module-1.1.tar.gz
./configure--prefix=/usr/local/nginx--with-http_st
Ub_status_module--with-http_ssl_module--with-http_realip_module--add-module=/
tmp/soft/nginx-sticky-module-1.1
Then do the make && make install times error below
/tmp/soft/nginx-sticky-module-1.1/ngx_http_sticky_misc.c:281:error:too few Arg
Uments to function ' Ngx_sock_ntop '
MAKE[1]: * * * [OBJS/ADDON/NGINX-STICKY-MODULE-1.1/NGX_HTTP_STICKY_MISC.O] Error 1
MAKE[1]: Leaving directory '/tmp/soft/nginx-1.6.2 '
Make: * * * [build] Error 2
According to the data, the NGX_HTTP_STICKY_MISC.C 281 lines can be modified as follows to solve the problem
Original Digest->len = Ngx_sock_ntop (in,digest
->data, Len, 1);
After the change Digest->len = Ngx_sock_ntop (in,sizeof (struct sockaddr_in), digest
->data, Len, 1);
Problems encountered with Nginx installation sticky