存档
-
Nginx自动生成目录列表
ngx_http_autoindex_module只在 ngx_http_index_module模块未找到索引文件时发出请求.
autoindex
语法
autoindex [ on/off ]默认值
autoindex off作用域
http, server, location激活/关闭自动索引
autoindex_exact_size
语法
autoindex_exact_size [ on/off ]默认值
autoindex_exact_size on作用域
http, server, location设定索引时文件大小的单位(B,KB, MB 或 GB)
autoindex_localtime
语法
autoindex_localtime [ on/off ]默认值
autoindex_localtime off作用域
http, server, location开启以本地时间来显示文件时间的功能。默认为关(GMT时间)
配置实例:
location / {
autoindex on;
}2009年9月1日 | 归档于 Nginx