ngx_http_autoindex_module只在 ngx_http_index_module模块未找到索引文件时发出请求.

配置实例

指导

  • [#autoindex_exact_size autoindex_exact_size]
  • [#autoindex_localtime autoindex_localtime]

syntax:*autoindex [ on|off ]*

default:*autoindex off*

激活/关闭自动索引

autoindex_exact_size

syntax:*autoindex_exact_size [ on|off ]*

default:*autoindex_exact_size on*

context:*http, server, location*

syntax:*autoindex_localtime [ on|off ]*

default:*autoindex_localtime off*

context:*http, server, location*

开启以本地时间来显示文件时间的功能。默认为关(GMT时间)

参考