You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by ch...@omiris.net on 2002/06/07 18:16:13 UTC

RE: How to prevent users from listing the content of directory in Tom cat 4?

either add an index.? in the directory you want protected

or look in $TOMCAT_HOME/conf/web.xml, find something like this ~ line 45
<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>true</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
  </servlet>

change the value of the listings param to false

-----Original Message-----
From: Jack Li [mailto:JLi@MurraysDiscount.com]
Sent: 07 June 2002 16:24
To: 'tomcat-user@jakarta.apache.org'
Subject: How to prevent users from listing the content of directory in
Tom cat 4?


Hello all,
 
How to prevent users from listing the content of directory in Tomcat 4?
 
Thanks,
Jack Li


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
postmaster@omiris.net.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
**********************************************************************