« Return to Thread: prevent directory list

prevent directory list

by Dave-53 :: Rate this Message:

Reply to Author | View in Thread

Hi, I am using JBoss 4.0.5.
   
  I tried to prevent directory listing by adding the following in web.xml, but got error: Child name 'default' is not unique.
   
    <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>
   
  Could someone help me on how to prevent directory listing?
  I tried to  change default to default1, it did not work.
   
  Thanks very much.
  Dave

       
---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.

 « Return to Thread: prevent directory list

LightInTheBox - Buy quality products at wholesale price