版权声明:sh0rk https://blog.csdn.net/Home_pig/article/details/83960749
登陆服务器,修改/etc/nginx/nginx.conf
# 在需要添加索引的server中添加
location / {
# 启动索引功能
autoindex on;
# 显示文件时间
autoindex_localtime on;
}