autoindex
syntax: autoindex [ on | off ]
default: autoindex off
context: http, server, location
variables: no
phase: content
Enables or disables the automatic directory listing.
autoindex_exact_size
syntax: autoindex_exact_size [ on | off ]
default: autoindex_exact_size on
context: http, server, location
variables: no
Defines how to represent file sizes in the directory listing -- either accurately (in bytes), or rounded (KB, MB or GB).
autoindex_localtime
syntax: autoindex_localtime [ on | off ]
default: autoindex_localtime off
context: http, server, location
variables: no
nginx的autoindex使用
最新推荐文章于 2024-08-25 20:29:57 发布
本文详细介绍了 Nginx 中 autoindex 模块的三个配置指令:autoindex、autoindex_exact_size 和 autoindex_localtime。这些指令分别用于开启或关闭目录列表功能、定义文件大小的显示方式以及是否使用本地时间格式。通过这些设置,管理员可以灵活地调整 Nginx 服务器的行为以更好地适应不同的需求。
1726

被折叠的 条评论
为什么被折叠?



