1 Reply Latest reply on Nov 14, 2003 6:05 PM by mcgowati

    Disable directory listing (JBoss 3.2.2)

    alberto

      Hello,

      We need to disable the Tomcat's default directory listing.

      If we change the listing parameter value to false in the web.xml file in the conf/ directory and restart the JBoss server the file changes again the value to true (without doing anything, it does it by itself!).

      Is it possible to change the web.xml in the WEB-INF/ directory to do the same thing?

      Any suggestion? Thank in advance!

        • 1. Re: Disable directory listing (JBoss 3.2.2)
          mcgowati

          change this value in your $JBOSS_HOME/server/default/jbossweb-tomcat.sar/web.xml for it To apply globally

          <init-param>
          <param-name>listings</param-name>
          <param-value>false</param-value>
          </init-param>

          Or you can add it to the applications WEB-INF/web.xml.

          This works in 3.2.1, I have yet to test in 3.2.2, but I am sure it will work.