Mercurial > hg > nginx-site
view xml/ru/docs/http/ngx_http_autoindex_module.xml @ 769:d71e56d56ada
Documented variables relocations between http log and core modules.
author | Vladimir Homutov <vl@nginx.com> |
---|---|
date | Mon, 19 Nov 2012 14:53:54 +0000 |
parents | 0422511d9bee |
children | 95c3c3bbf1ce |
line wrap: on
line source
<?xml version="1.0"?> <!-- Copyright (C) Igor Sysoev Copyright (C) Nginx, Inc. --> <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> <module name="Модуль ngx_http_autoindex_module" link="/ru/docs/http/ngx_http_autoindex_module.html" lang="ru" rev="2"> <section id="summary"> <para> Модуль <literal>ngx_http_autoindex_module</literal> обслуживает запросы, оканчивающиеся слэшом (‘<literal>/</literal>’), и выдаёт листинг каталога. Обычно запрос попадает к модулю <literal>ngx_http_autoindex_module</literal>, когда модуль <link doc="ngx_http_index_module.xml">ngx_http_index_module</link> не нашёл индексный файл. </para> </section> <section id="example" name="Пример конфигурации"> <para> <example> location / { autoindex on; } </example> </para> </section> <section id="directives" name="Директивы"> <directive name="autoindex"> <syntax><literal>on</literal> | <literal>off</literal></syntax> <default>off</default> <context>http</context> <context>server</context> <context>location</context> <para> Разрешает или запрещает вывод листинга каталога. </para> </directive> <directive name="autoindex_exact_size"> <syntax><literal>on</literal> | <literal>off</literal></syntax> <default>on</default> <context>http</context> <context>server</context> <context>location</context> <para> Определяет, как выводить размеры файлов в листинге каталога — точно, или округляя до килобайт, мегабайт и гигабайт. </para> </directive> <directive name="autoindex_localtime"> <syntax><literal>on</literal> | <literal>off</literal></syntax> <default>off</default> <context>http</context> <context>server</context> <context>location</context> <para> Определяет, в какой временной зоне выводить время в листинге каталога — в локальной или в UTC. </para> </directive> </section> </module>