Module ngx_http_autoindex_module
优质
小牛编辑
127浏览
2023-12-01
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 could not find an index file.
Example Configuration
location / { autoindex on; }
Directives
syntax: | autoindex |
default: | autoindex off; |
context: | http , server , location |
Enables or disables a directory listing output.
syntax: | autoindex_exact_size |
default: | autoindex_exact_size on; |
context: | http , server , location |
Specifies whether file sizes in the directory listing should be output exactly, or rounded to kilobytes, megabytes, and gigabytes.
syntax: | autoindex_localtime |
default: | autoindex_localtime off; |
context: | http , server , location |
Specifies whether times in the directory listing should be output in a local time zone or UTC.