RuHttpAutoindexModule
Contents |
[edit] ngx_http_autoindex_module
Модуль ngx_http_autoindex_module выдаёт листинг каталога. Обычно запрос попадает к модулю ngx_http_autoindex_module, когда модуль ngx_http_index_module не нашёл индексный файл. Содержание Пример конфигурации
[edit] Директивы
- [#autoindex autoindex]
- [#autoindex_exact_size autoindex_exact_size]
- [#autoindex_localtime autoindex_localtime]
Пример конфигурации
: location / {
: autoindex on;
: }
[edit] autoindex
syntax: autoindex [on|off]
default: autoindex off
context: http, server, location
Директива разрешает или запрещает вывод листинга каталога.
[edit] autoindex_exact_size
syntax: autoindex_exact_size [on|off]
default: autoindex_exact_size on
context: http, server, location
Директива определяет, как выводить размеры файлов в листинге каталога — точно, или округляя до килобайт, мегабайт и гигобайт.
[[AutoIndex(autoindex_localtime)
]== autoindex_localtime ==
syntax: autoindex_localtime [on|off]
default: autoindex_localtime off
context: http, server, location
Директива определяет, в какой временной зоне выводить время в листинге каталога — в локальной или в GMT.









