In the web.xml under the conf directory, change the listings parameter to false for
the default servlet. This is for 4.1.27, don't know if the same applies to 3.3.1a
<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>
-----Original Message-----
From: Denver J. Saldanha [mailto:[EMAIL PROTECTED]
Sent: Monday, October 06, 2003 1:29 AM
To: [EMAIL PROTECTED]
Subject: preventing directory listings
Hi,
I am using tomcat 3.3.1a. Now when i type sin the url
http://localhost:8080/
<http://localhost:8080/> I can see the directory listing. Is there any
way
to prevent this. Could you please let me know about this if there is a
way.
Thanks and Regards
Denver Saldanha
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]