You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by sc...@e-peopleserve.com on 2002/03/26 17:18:34 UTC

Default servlet -> listings = 0 doesn't work?

In my web.xml file I've been trying to turn off directory listings by
setting the listing parameter to 0 or false, but it it doesn't do anything.
I can always see the contents of the directory in my web app.  My web app
does have it's own web.xml file but it doesn't specify anything unusual,
definately not a default servlet.

What I've been trying to use is:

  <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>0</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
  </servlet>


I'm using Tomcat 4.0.1 ...  Is this something fixed in 4.0.2?

Thanks...

--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>