nginx发布一个遍历目录

泄露秘密 提交于 2020-01-20 18:22:49
    location /filelist/centos6/ {
            root /opt/static/;
            autoindex_localtime on;
            autoindex on;
    }

    autoindex_localtime on表示使用服务器上时区。这个默认是off的,有可能导致你发布的内容时间是其他时区的。
    autoindex on表示本虚拟目录开启遍历。
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!