AutoIndex#
The module processes requests ending with the slash character (/
) and produces a directory listing. Usually, a request is passed to the http_autoindex module when the http_index module cannot find an index file.
Configuration Example#
location / {
autoindex on;
}
Directives#
autoindex#
Enables or disables the directory listing output.
autoindex_exact_size#
|
|
Default |
|
http, server, location |
For the HTML format, specifies whether exact file sizes should be output in the directory listing, or rather rounded to kilobytes, megabytes, and gigabytes.
autoindex_format#
|
|
Default |
|
http, server, location |
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.
The XML output can be transformed using the http_xslt module.
autoindex_localtime#
|
|
Default |
|
http, server, location |
For the HTML For the HTML format, specifies whether times in the directory listing should be output in the local time zone or UTC.