]> git.kaiwu.me - nginx.git/commitdiff
Configure: renamed the upstream sticky module option.
authorHenry Yuan <h.yuan@f5.com>
Thu, 23 Apr 2026 21:24:24 +0000 (21:24 +0000)
committerhyuan-netizen <h.yuan@f5.com>
Wed, 29 Apr 2026 16:58:29 +0000 (09:58 -0700)
The module can now be disabled with the
--without-http_upstream_sticky_module option to match
the naming convention used by other upstream modules.
Deprecated the --without-http_upstream_sticky option.

Closes: https://github.com/nginx/nginx/issues/1273
auto/options

index 271153a76ae1440555e33b5ab57ef6b554c9bdda..e619c8fa5c884eff0167270b6badd8418eeb1c13 100644 (file)
@@ -293,7 +293,13 @@ $0: warning: the \"--with-ipv6\" option is deprecated"
                                          HTTP_UPSTREAM_RANDOM=NO    ;;
         --without-http_upstream_keepalive_module) HTTP_UPSTREAM_KEEPALIVE=NO ;;
         --without-http_upstream_zone_module) HTTP_UPSTREAM_ZONE=NO  ;;
-        --without-http_upstream_sticky)  HTTP_UPSTREAM_STICKY=NO    ;;
+        --without-http_upstream_sticky_module) HTTP_UPSTREAM_STICKY=NO ;;
+        --without-http_upstream_sticky)
+            HTTP_UPSTREAM_STICKY=NO
+            NGX_POST_CONF_MSG="$NGX_POST_CONF_MSG
+$0: warning: the \"--without-http_upstream_sticky\" option is deprecated, \
+use the \"--without-http_upstream_sticky_module\" option instead"
+        ;;
 
         --with-http_perl_module)         HTTP_PERL=YES              ;;
         --with-http_perl_module=dynamic) HTTP_PERL=DYNAMIC          ;;
@@ -518,7 +524,8 @@ cat << END
                                      disable ngx_http_upstream_keepalive_module
   --without-http_upstream_zone_module
                                      disable ngx_http_upstream_zone_module
-  --without-http_upstream_sticky     disable sticky upstream modules
+  --without-http_upstream_sticky_module
+                                     disable ngx_http_upstream_sticky_module
 
   --with-http_perl_module            enable ngx_http_perl_module
   --with-http_perl_module=dynamic    enable dynamic ngx_http_perl_module