nginx配置文件中server块内容如下:
server {
listen 80;
server_name download.test.com;
charset utf-8;
location / {
allow all;
autoindex on; #开启目录浏览功能;
autoindex_exact_size off; #关闭详细文件大小统计,让文件大小显示MB,GB单位,默认为b;
autoindex_localtime on;
# index index.html;
root /data/workspace/;
}
}