此模塊用于自動(dòng)生成目錄列表.
ngx_http_autoindex_module只在 ngx_http_index_module模塊未找到索引文件時(shí)發(fā)出請(qǐng)求.
__配置實(shí)例__
location / { : autoindex on; }
[#autoindex autoindex]
[#autoindex_exact_size autoindex_exact_size]
[#autoindex_localtime autoindex_localtime]
syntax: autoindex [ on|off ]
default: autoindex off
context: http, server, location
激活/關(guān)閉自動(dòng)索引
syntax: autoindex_exact_size [ on|off ]
default: autoindex_exact_size on
context: http, server, location
設(shè)定索引時(shí)文件大小的單位(B,KB, MB 或 GB) Template:Anchor
syntax: autoindex_localtime [ on|off ]
default: autoindex_localtime off
context: http, server, location
開(kāi)啟以本地時(shí)間來(lái)顯示文件時(shí)間的功能。默認(rèn)為關(guān)(GMT時(shí)間)
更多建議: