SC,
Look at the web.xml file in your Apache Tomcat 4.0 conf directory.
The 'listings' init-param of the default servlet entry controls whether
directory listing is allowed. The welcome-file-list parameter entry
controls what files are used as welcome files.

   <welcome-file-list>
     <welcome-file>index.html</welcome-file>
     <welcome-file>index.htm</welcome-file>
     <welcome-file>index.jsp</welcome-file>
   </welcome-file-list>

There's also documentation in the web.xml file itself.

Regards,

Richard

At 03:05 PM 4/16/2002 -0500, you wrote:
>Hi all,
>
>does anyone know how I can prevent tomcat from listing the contents of the
>directories? Is it an attribute of the <context> tag in the server.xml?
>also, how do I tell it which is the welcome page of every directory (I mean
>index.jsp or whatever)
>
>Best regards,
>SC
>
>
>_________________________________________________________
>Do You Yahoo!?
>Get your free @yahoo.com address at http://mail.yahoo.com
>
>
>===========================================================================
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>JSP-INTEREST".
>For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
>Some relevant FAQs on JSP/Servlets can be found at:
>
>http://archives.java.sun.com/jsp-interest.html
>http://java.sun.com/products/jsp/faq.html
>http://www.esperanto.org.nz/jsp/jspfaq.jsp
>http://www.jguru.com/faq/index.jsp
>http://www.jspinsider.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to