登陆服务器,修改/etc/nginx/nginx.conf
# 在需要添加索引的server中添加
location / {
# 启动索引功能
autoindex on;
# 显示文件时间
autoindex_localtime on;
}
本文介绍如何在Nginx服务器上配置文件索引显示,包括启用索引功能及显示文件时间的具体设置方法。
登陆服务器,修改/etc/nginx/nginx.conf
# 在需要添加索引的server中添加
location / {
# 启动索引功能
autoindex on;
# 显示文件时间
autoindex_localtime on;
}
1908
574
1万+

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