location /filelist/centos6/ {
root /opt/static/;
autoindex_localtime on;
autoindex on;
}
autoindex_localtime on表示使用服务器上时区。这个默认是off的,有可能导致你发布的内容时间是其他时区的。
autoindex on表示本虚拟目录开启遍历。
nginx发布一个遍历目录
猜你喜欢
转载自blog.51cto.com/zhukeqiang/2465646
今日推荐
周排行