FAQ

Page Discussion Edit History

RuHttpAutoindexModule

Revision as of 19:31, 22 September 2010 by MichaelLustfield (Talk)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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;
: }

Template:Anchor

[edit] autoindex

syntax: autoindex [on|off]

default: autoindex off

context: http, server, location

Директива разрешает или запрещает вывод листинга каталога.


Template:Anchor

[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.