1 Reply Latest reply on Aug 31, 2005 5:28 AM by jcash

    Blocking Directory Listing

    jcash

      How do you stop directory listings in JBoss?

      When the http requests maps to a physical directory location within a deployed war file, the contents of that directory are listed in the response. How can this default behavior be stopped, so that a 'resource not found' or other similar exception is thrown.

      On tomcat the following entry in web.xml should work.

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


      but this doesn't work within JBoss.

      Any help would be much apprecieated.