1 打开 nginx 的配置文件
在 location中加入以下三行代码配置
location / {
autoindex on; //开启目录浏览功能;
autoindex_exact_size off; //关闭详细文件大小统计,
autoindex_localtime on; //开启以服务器本地时区显示文件修改日期!
}
重启nginx
1 打开 nginx 的配置文件
在 location中加入以下三行代码配置
location / {
autoindex on; //开启目录浏览功能;
autoindex_exact_size off; //关闭详细文件大小统计,
autoindex_localtime on; //开启以服务器本地时区显示文件修改日期!
}
重启nginx