[PATCH] Documented "index off;"

Maxim Dounin mdounin at mdounin.ru
Tue May 12 23:09:15 UTC 2026


# HG changeset patch
# User Maxim Dounin <mdounin at mdounin.ru>
# Date 1778626897 -10800
#      Wed May 13 02:01:37 2026 +0300
# Node ID f104c00a4052cffc9a1ea4b9b090b2919dcfb85e
# Parent  ba01a18ef6e818a52ee7348334e1d510facfed5a
Documented "index off;".

diff --git a/xml/en/docs/http/ngx_http_index_module.xml b/xml/en/docs/http/ngx_http_index_module.xml
--- a/xml/en/docs/http/ngx_http_index_module.xml
+++ b/xml/en/docs/http/ngx_http_index_module.xml
@@ -43,7 +43,7 @@ location / {
 <section id="directives" name="Directives">
 
 <directive name="index">
-<syntax><value>file</value> ...</syntax>
+<syntax><value>file</value> ... | <literal>off</literal></syntax>
 <default>index.html</default>
 <context>http</context>
 <context>server</context>
@@ -54,6 +54,7 @@ Defines files that will be used as an in
 The <value>file</value> name can contain variables.
 Files are checked in the specified order.
 The last element of the list can be a file with an absolute path.
+The <literal>off</literal> parameter (1.31.1) disables use of index files.
 Example:
 <example>
 index index.$geo.html index.0.html /index.html;
diff --git a/xml/ru/docs/http/ngx_http_index_module.xml b/xml/ru/docs/http/ngx_http_index_module.xml
--- a/xml/ru/docs/http/ngx_http_index_module.xml
+++ b/xml/ru/docs/http/ngx_http_index_module.xml
@@ -42,7 +42,7 @@ location / {
 <section id="directives" name="Директивы">
 
 <directive name="index">
-<syntax><value>файл</value> ...</syntax>
+<syntax><value>файл</value> ... | <literal>off</literal></syntax>
 <default>index.html</default>
 <context>http</context>
 <context>server</context>
@@ -53,6 +53,8 @@ location / {
 В имени файла можно использовать переменные.
 Наличие файлов проверяется в порядке их перечисления.
 В конце списка может стоять файл с абсолютным путём.
+Параметр <literal>off</literal> (1.31.1) запрещает использование
+индексных файлов.
 Пример:
 <example>
 index index.$geo.html index.0.html /index.html;


More information about the nginx-devel mailing list