tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gurmeet" <gurm...@indicom.co.in>
Subject RE: [urgent!] Disabling the context's content listing
Date Wed, 16 May 2001 13:47:03 GMT
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-file>Your default page name e. g. index.jsp </welcome-file>
 </welcome-file-list>

Gurmeet

-----Original Message-----
From: Nancy Crisostomo Martinez [mailto:nancycm@balam2.cuc.uqroo.mx]
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:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:tomcat-user-help@jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message