课程表

Nginx 基础

Nginx 核心模块

Nginx 基本模块

Nginx 其他模块

工具箱
速查手册

HTTP AutoIndex 模块

当前位置:免费教程 » 数据库/运维 » Nginx

ngx_http_autoindex_module

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

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

__配置实例__

  1. location  /  {
  2. : autoindex  on;
  3. }

指导

  • [#autoindex autoindex]

  • [#autoindex_exact_size autoindex_exact_size]

  • [#autoindex_localtime autoindex_localtime]

 

autoindex

syntax: autoindex [ on|off ]

default: autoindex off

context: http, server, location

激活/关闭自动索引

autoindex_exact_size

syntax: autoindex_exact_size [ on|off ]

default: autoindex_exact_size on

context: http, server, location

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

autoindex_localtime

syntax: autoindex_localtime [ on|off ]

default: autoindex_localtime off

context: http, server, location

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

转载本站内容时,请务必注明来自W3xue,违者必究。
 友情链接:直通硅谷  点职佳  北美留学生论坛

本站QQ群:前端 618073944 | Java 606181507 | Python 626812652 | C/C++ 612253063 | 微信 634508462 | 苹果 692586424 | C#/.net 182808419 | PHP 305140648 | 运维 608723728

W3xue 的所有内容仅供测试,对任何法律问题及风险不承担任何责任。通过使用本站内容随之而来的风险与本站无关。
关于我们  |  意见建议  |  捐助我们  |  报错有奖  |  广告合作、友情链接(目前9元/月)请联系QQ:27243702 沸活量
皖ICP备17017327号-2 皖公网安备34020702000426号