Nginx配置文件下载

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/;

        }
}

猜你喜欢

转载自blog.csdn.net/baidu_38432732/article/details/110391339