tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pooleery, Manoj" <Poole...@Synygy.com>
Subject RE: tomcat 4.1.18: disable default directory listing
Date Mon, 03 Feb 2003 23:19:36 GMT
Yes, you can prevent the directory listings.  The settings for this is in
the web.xml in the conf directory of tomcat.  The settings are for the
default servlet (The first entry in the web.xml).  There is a property
called 'listings', which you can set to false.  The default value is true.
You can do it like this - 
     <init-param>
            <param-name>listings</param-name>
            <param-value>false</param-value>
        </init-param>

Thanks
-Manoj.

-----Original Message-----
From: Mona Wong-Barnum [mailto:mona@ncmir.ucsd.edu]
Sent: Monday, February 03, 2003 6:13 PM
To: tomcat-user@jakarta.apache.org
Cc: mona@ncmir.ucsd.edu
Subject: tomcat 4.1.18: disable default directory listing


Hi:
	I'm sure this has been asked many times before but I've searched all

over the mail archives as well as google and did not find the answer I  
need...

	How do I disable directory listing?  I'm using tomcat 4.1.18 and I
do  
not want to count on index.html or index.jsp.  Is there a way to do  
this from server.xml?

	Your patience and help is appreciated.

Sincerely,
Mona

************************************************************************ 
****
     "Your body is just a place that your memory calls home"
							- Deepak Chopra
************************************************************************ 
****


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message