]> git.feebdaed.xyz Git - 0xmirror/nginx.git/commitdiff
Fixed inaccurate index directive error report.
authorwillmafh <willmafh@hotmail.com>
Mon, 8 Sep 2025 14:03:30 +0000 (22:03 +0800)
committerpluknet <pluknet@nginx.com>
Thu, 18 Sep 2025 14:16:22 +0000 (18:16 +0400)
src/http/modules/ngx_http_index_module.c

index 2ee1dd5a449ae23d1697733ddd67281d23a44317..18e7049c516b9dc5291505a6e6b01a345808ae1d 100644 (file)
@@ -490,7 +490,7 @@ ngx_http_index_set_index(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
         if (value[i].len == 0) {
             ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
                                "index \"%V\" in \"index\" directive is invalid",
-                               &value[1]);
+                               &value[i]);
             return NGX_CONF_ERROR;
         }