# HG changeset patch # User Yaroslav Zhuravlev # Date 1418739762 -10800 # Node ID 90922e31756d0969cc81d10b4be40290638e6ce0 # Parent 47e19b6d3dbcc20f5d080c17bf91d4d93b501071 Documented the autoindex_format directive. diff --git a/xml/en/docs/http/ngx_http_autoindex_module.xml b/xml/en/docs/http/ngx_http_autoindex_module.xml --- a/xml/en/docs/http/ngx_http_autoindex_module.xml +++ b/xml/en/docs/http/ngx_http_autoindex_module.xml @@ -10,7 +10,7 @@ + rev="3">
@@ -64,13 +64,40 @@ Enables or disables the directory listin location -Specifies whether exact file sizes should be output in the directory listing, +For the HTML format, +specifies whether exact file sizes should be output in the directory listing, or rather rounded to kilobytes, megabytes, and gigabytes. + + + html | + xml | + json | + jsonp +html +http +server +location +1.7.9 + + +Sets the format of a directory listing. + + + +When the JSONP format is used, the name of a callback function is set +with the callback request argument. +If the argument is missing or has an empty value, +then the JSON format is used. + + + + + on | off off @@ -79,7 +106,8 @@ or rather rounded to kilobytes, megabyte location -Specifies whether times in the directory listing should be +For the HTML format, +specifies whether times in the directory listing should be output in the local time zone or UTC. diff --git a/xml/ru/docs/http/ngx_http_autoindex_module.xml b/xml/ru/docs/http/ngx_http_autoindex_module.xml --- a/xml/ru/docs/http/ngx_http_autoindex_module.xml +++ b/xml/ru/docs/http/ngx_http_autoindex_module.xml @@ -10,7 +10,7 @@ + rev="3">
@@ -62,13 +62,40 @@ location / { location -Определяет, как выводить размеры файлов в листинге +Для формата HTML +определяет, как выводить размеры файлов в листинге каталога: точно или округляя до килобайт, мегабайт и гигабайт. + + + html | + xml | + json | + jsonp +html +http +server +location +1.7.9 + + +Задаёт формат вывода листинга каталога. + + + +При использовании формата JSONP имя callback-функции +задаётся в аргументе запроса callback. +Если аргумент отсутствует или имеет пустое значение, +то используется формат JSON. + + + + + on | off off @@ -77,7 +104,8 @@ location / { location -Определяет, в какой временной зоне выводить время в листинге +Для формата HTML +определяет, в какой временной зоне выводить время в листинге каталога: в локальной или в UTC.