In the Jakarta-tomcat.../conf/web.xml the configuration for the default
servlet should be as below.

The parameter of interest is "listings" and the value should be "false"


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

Richie


-----Original Message-----
From: Tim Funk [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 30, 2003 9:53 AM
To: Tomcat Users List
Subject: Re: how to avoid listing directory in Tomcat 4.1 ?

http://tomcatfaq.sourceforge.net/configure.html

-Tim

Michenaud Laurent wrote:
> Hi,
> 
> how to avoid listing directory in Tomcat 4.1 ?
> 
> Thanks
>  


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to