TomcatDirectoryListings

HomePage | RecentChanges | Preferences

Q: I dropped an old webapp into Tomcat 5.5 and now I'm seeing directory listings

Change the 'listings' param to 'false' in $CATALINA_HOME/conf/web.xml

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

HomePage | RecentChanges | Preferences
This page is read-only | View other revisions
Last edited August 31, 2005 10:10 am by WendySmoak (diff)
Search: