Nginx HTTP AutoIndex 模塊

2018-10-27 19:45 更新

ngx_http_autoindex_module

此模塊用于自動(dòng)生成目錄列表.

ngx_http_autoindex_module只在 ngx_http_index_module模塊未找到索引文件時(shí)發(fā)出請(qǐng)求.

__配置實(shí)例__

location  /  {
: autoindex  on;
}

指導(dǎo)

  • [#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

激活/關(guān)閉自動(dòng)索引

Template:Anchor

autoindex_exact_size

syntax: autoindex_exact_size [ on|off ]

default: autoindex_exact_size on

context: http, server, location

設(shè)定索引時(shí)文件大小的單位(B,KB, MB 或 GB) Template:Anchor

autoindex_localtime

syntax: autoindex_localtime [ on|off ]

default: autoindex_localtime off

context: http, server, location

開啟以本地時(shí)間來顯示文件時(shí)間的功能。默認(rèn)為關(guān)(GMT時(shí)間)


 


以上內(nèi)容是否對(duì)您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號(hào)
微信公眾號(hào)

編程獅公眾號(hào)