Tomcat7设置浏览目录权限

Posted by Sir0xb on 2011-11-05 12:34:02 +0800

打开 tomcat7/conf/web.xml 找到如下代码,将 listings 修改成 true

<servlet>
    <servlet-name>default</servlet-name>
    <servlet-class>org.apache.catalina.servlets.DefaultServlet</servlet-class>
    <init-param>
        <param-name>debug</param-name>
        <param-value>0</param-value>
    </init-param>
    <init-param>
        <param-name>listings</param-name>
        <param-value>false</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
</servlet>

Copyright © 2022, Built with Gatsby