Nginx中的模块(Python模块)
目录索引模块
示例:
location / {
autoindex on;
}
1、启用或禁用目录列表输出
语法: autoindex on | off;
默认: autoindex off;
语境: http,server,location
2、指定是否应在目录列表中输出确切的文件大小(四舍五入)
语法: autoindex_exact_size on | off;
默认: autoindex_exact_size on;
语境: http,server,location
3、设置目录列表的格式
语法: autoindex_format html | xml | json | jsonp;
默认: autoindex_format html;
语境: http,server,location