在 server中添加
location   /soft {   //soft是路径
autoindex on; //开启功能
autoindex_exact_size off; //以人类可以理解的方式显示文件大小(不开就是b)
autoindex_localtime on; //使用当地时间显示文件时间
                       }在 server中添加
location   /soft {   //soft是路径
autoindex on; //开启功能
autoindex_exact_size off; //以人类可以理解的方式显示文件大小(不开就是b)
autoindex_localtime on; //使用当地时间显示文件时间
                       }