Richard, Thanks for the insight. So, if I understand correctly, the 'default' servlet has an initial parameter 'listings'. 'listings' has a default value of true and that means that the listings of the all files is accessible for a given folder.
Is my understanding correct? Thanks! Asim -----Original Message----- From: Richard Yee [mailto:[EMAIL PROTECTED]] Sent: Friday, June 21, 2002 6:41 PM To: [EMAIL PROTECTED] Subject: Re: how to prevent the showing of a web folder Iv�n, For Tomcat 4, edit the <Tomcat_Install>/conf/web.xml file so that the default servlet 'listings' init param is set to false. ie. <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>false</param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet> Regards, Richard At 03:50 PM 6/21/2002 -0600, you wrote: >HI, how can i prevent in my tomcat web site the people to access the list of >the files i have in some folders, here's an example: > >when i write in the address: http://www.xyz.com/register/ it shows >the list of the files in the register folder, and when i write >http://www.xyz.com/register/html/ then it shows the list of the files in the >html folder. > >Thanks > >_________________________________________________________________ >Hable con sus amigos en l�nea, pruebe MSN Messenger: http://messenger.msn.es > >___________________________________________________________________________ >To unsubscribe, send email to [EMAIL PROTECTED] and include in the body >of the message "signoff SERVLET-INTEREST". > >Archives: http://archives.java.sun.com/archives/servlet-interest.html >Resources: http://java.sun.com/products/servlet/external-resources.html >LISTSERV Help: http://www.lsoft.com/manuals/user/user.html > ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
