RE: [urgent!] Disabling the context's content listing
You can put a welcome-file-list entry in your web.xml, which will open the specified file when you access your domain/context without the file name e.g. welcome-file-list welcome-fileYour default page name e. g. index.jsp /welcome-file /welcome-file-list Gurmeet -Original Message- From: Nancy Crisostomo Martinez [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 16, 2002 7:15 PM To: Tomcat Users List Subject: [urgent!] Disabling the context's content listing Hi! Does anybody know how to disable the content of a context listing? I mean, when you try to load a JSP file you must type the following URL: http://address:8080/contextname/file.jsp But when you type http://address:8080/contextname all the list of jsp, gif, jpg files are showed and even you can download the file thru the right button of your mouse with (Save target as...)... It would be right if instead of the listing, a Forbidden or Not Found page appears, wouldn't it? So, could you help me to disable this kind of access? I'll appreciate all your advice!!! Thank you in advance! Nancy. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: [urgent!] Disabling the context's content listing
nancy look below this is web.xml add the welcome-file-list to your web.xml file ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/j2ee/dtds/web-app_2.3.dtd; web-app welcome-file-list welcome-fileindex.html/welcome-file /welcome-file-list /web-app -Original Message- Fro: Nancy Crisostomo Martinez [mailto:[EMAIL PROTECTED]] Sent: 16 May 2002 15:45 To: Tomcat Users List Subject: [urgent!] Disabling the context's content listing Hi! Does anybody know how to disable the content of a context listing? I mean, when you try to load a JSP file you must type the following URL: http://address:8080/contextname/file.jsp But when you type http://address:8080/contextname all the list of jsp, gif, jpg files are showed and even you can download the file thru the right button of your mouse with (Save target as...)... It would be right if instead of the listing, a Forbidden or Not Found page appears, wouldn't it? So, could you help me to disable this kind of access? I'll appreciate all your advice!!! Thank you in advance! Nancy. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: [urgent!] Disabling the context's content listing
The original poster doesn't indicate which version of Tomcat they are using -- how this is done is version-specific. This being disabling directory listings/indexes -- and usually there is a more specific way to do it than using a welcome file. For example, with Tomcat 4.0.X, there is a way to configure it in the default server-wide web.xml file (so it applies to all contexts/applications), and it can be overridden on a per context/application basis (in each context/application's web.xml file). It's documented pretty well in the server-wide web.xml file -- you set the listings init-param for the default servlet to the appropriate value. For other versions of Tomcat, I suggest checking the archives of this list. Here's a good place to do that: http://marc.theaimsgroup.com/ Look for tomcat-user in the list of apache lists. You might also look through the comments in the server-wide configuration files that come with your version of Tomcat. On Thu, 16 May 2002, Vaneet Sharma wrote: nancy look below this is web.xml add the welcome-file-list to your web.xml file ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/j2ee/dtds/web-app_2.3.dtd; web-app welcome-file-list welcome-fileindex.html/welcome-file /welcome-file-list /web-app -Original Message- Fro: Nancy Crisostomo Martinez [mailto:[EMAIL PROTECTED]] Sent: 16 May 2002 15:45 To: Tomcat Users List Subject: [urgent!] Disabling the context's content listing Hi! Does anybody know how to disable the content of a context listing? I mean, when you try to load a JSP file you must type the following URL: http://address:8080/contextname/file.jsp But when you type http://address:8080/contextname all the list of jsp, gif, jpg files are showed and even you can download the file thru the right button of your mouse with (Save target as...)... It would be right if instead of the listing, a Forbidden or Not Found page appears, wouldn't it? So, could you help me to disable this kind of access? I'll appreciate all your advice!!! Thank you in advance! Nancy. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Milt Epstein Research Programmer Systems and Technology Services (STS) Campus Information Technologies and Educational Services (CITES) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]