apache tomcat 8.0 显示目录文件
上星期,单位要部署一个本地的服务器,能显示目录文件,楼主试用了apache httpd, 在/etc/httpd/conf/httpd.conf 文件夹里修改有关于Directory的属性,才能显示目录,有可能楼主每配好,最终没成功,后来为了省事在tomcat8.0里安装完毕之后,通过查找相关信息,显示目录文件需修改conf/web.xml,搜索listings,将param-value属性由默认的false更改为true就能显示服务器上部署的目录文件了!
<!-- listings Should directory listings be produced if there -->
<!-- is no welcome file in this directory? [false] -->
<!-- WARNING: Listings for directories with many -->
<!-- entries can be slow and may consume -->
<!-- significant proportions of server resources.-->
<init-param>
<param-name>listings</param-name>
<param-value>true</param-value>
</init-param>