启用Nginx目录浏览功能

来源:互联网 发布:sql server安装 编辑:程序博客网 时间:2024/06/10 15:15


1 打开 nginx 的配置文件

 在 location中加入以下三行代码配置

location / {              autoindex on;                   //开启目录浏览功能;           autoindex_exact_size off;       //关闭详细文件大小统计,        autoindex_localtime on;         //开启以服务器本地时区显示文件修改日期!   }
重启nginx



0 0
原创粉丝点击