codecamp

Nginx HTTP AutoIndex 模块

ngx_http_autoindex_module

此模块用于自动生成目录列表.

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

__配置实例__

location  /  {
: autoindex  on;
}

指导

  • [#autoindex autoindex]

  • [#autoindex_exact_size autoindex_exact_size]

  • [#autoindex_localtime autoindex_localtime]


Template:Anchor

autoindex

syntax: autoindex [ on|off ]

default: autoindex off

context: http, server, location

激活/关闭自动索引

Template:Anchor

autoindex_exact_size

syntax: autoindex_exact_size [ on|off ]

default: autoindex_exact_size on

context: http, server, location

设定索引时文件大小的单位(B,KB, MB 或 GB) Template:Anchor

autoindex_localtime

syntax: autoindex_localtime [ on|off ]

default: autoindex_localtime off

context: http, server, location

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


 


Nginx HTTP Auth Basic 模块
Nginx HTTP DAV 模块
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定