Module ngx_http_autoindex_module

Example Configuration
Directives
     autoindex
     autoindex_exact_size
     autoindex_localtime

The ngx_http_autoindex_module module processes requests ending with the slash character (‘/’) and produces a directory listing. Usually a request is passed to the ngx_http_autoindex_module module when the ngx_http_index_module module cannot find an index file.

Example Configuration

location / {
    autoindex on;
}

Directives

Syntax: autoindex on | off;
Default:
autoindex off;
Context: http, server, location

Enables or disables the directory listing output.

Syntax: autoindex_exact_size on | off;
Default:
autoindex_exact_size on;
Context: http, server, location

Specifies whether exact file sizes should be output in the directory listing, or rather rounded to kilobytes, megabytes, and gigabytes.

Syntax: autoindex_localtime on | off;
Default:
autoindex_localtime off;
Context: http, server, location

Specifies whether times in the directory listing should be output in the local time zone or UTC.