[nginx-site] Documented "index off;".
Maxim Dounin
mdounin at mdounin.ru
Tue May 19 15:10:14 UTC 2026
details: http://freenginx.org/hg/nginx-site/rev/f104c00a4052
branches:
changeset: 3133:f104c00a4052
user: Maxim Dounin <mdounin at mdounin.ru>
date: Wed May 13 02:01:37 2026 +0300
description:
Documented "index off;".
diffstat:
xml/en/docs/http/ngx_http_index_module.xml | 3 ++-
xml/ru/docs/http/ngx_http_index_module.xml | 4 +++-
2 files changed, 5 insertions(+), 2 deletions(-)
diffs (41 lines):
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