Thanks, it works after I changed "listings" to false in web.xml. But it gives you a tomcat 404 error message when you try to browse the directory. How can I customerize this message?
Thanks Jack Li -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, June 07, 2002 12:16 PM To: [EMAIL PROTECTED] Subject: 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:[EMAIL PROTECTED]] Sent: 07 June 2002 16:24 To: '[EMAIL PROTECTED]' 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 [EMAIL PROTECTED] This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. ********************************************************************** -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
