tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Turner, John" <JTur...@AAS.com>
Subject RE: Catalina Directory Listing
Date Thu, 12 Dec 2002 11:14:38 GMT

Put an index.html file in each directory that redirects to the home page
using a META REFRESH of zero.  Not so elegant, but very simple and 100%
effective.

John


-----Original Message-----
From: Gerrit Grobbelaar [mailto:gerrit@redshift.co.za] 
Sent: Thursday, December 12, 2002 5:48 AM
To: Tomcat Users List
Subject: Catalina Directory Listing

How must I configure Catalina (Tomcat 4.1.12) so that it doesn't show a
directory listing of the directories that don't have any welcome-files? The
Valve Component? How? etc.

Currently I have a weak sollution (IMHO):
Implementing "org.apache.catalina.servlets.DefaultServlet" and give it (via
web.xml):
<init-param>
  <param-name>listings</param-name>
  <param-value>false</param-value>
</init-param>
and then i just map that servlet to the directory/directories i don't want
to show a listing.

Thanks in advance
Gerrit


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

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.419 / Virus Database: 235 - Release Date: 11/13/2002
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.419 / Virus Database: 235 - Release Date: 11/13/2002
 

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


Mime
View raw message