tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joseph Wong" <joe_...@hotmail.com>
Subject Re: How to disable directory listing in Tomcat?
Date Sun, 26 Nov 2000 17:16:39 GMT
But how to disable directory listing in Tomcat without creating extra .jsp 
and .html, e.g. index.jsp, index.html......

I remembered that if I disable Index Options in Apache then the following 
message will be displayed if I try to browse directory
.


Forbidden
You don't have permission to access /abc/ on this server.


-----------------------------------------------------------------

Apache/1.3.14 Server at 10.10.0.1 Port 80



>From: "Julio Serje (@canada.com)" <jserje@home.com>
>Reply-To: "Julio Serje (@canada.com)" <jserje@canada.com>
>To: <tomcat-user@jakarta.apache.org>
>Subject: Re: How to disable directory listing in Tomcat?
>Date: Sun, 26 Nov 2000 11:15:33 -0500
>
>Hi, Joseph,
>
>You can:
>
>a) create an index.jsp page for your directory, or
>b) create (or edit, if you have it already...) a web.xml file for your
>webapp and alter the <welcome-file-list> section:
>
>
>     <welcome-file-list>
>        <welcome-file>
>             index.jsp
>         </welcome-file>
>         <welcome-file>
>             index.html
>         </welcome-file>
>         <welcome-file>
>             index.htm
>         </welcome-file>
>
>          <!-- add this to enable abc as your welcome page -->
>         <welcome-file>
>             abc.jsp
>         </welcome-file>
>
>     </welcome-file-list>
>
>
>Julio
>
>----- Original Message -----
>From: Joseph Wong <joe_clw@hotmail.com>
>To: <tomcat-user@jakarta.apache.org>
>Sent: Sunday, November 26, 2000 10:30 AM
>Subject: How to disable directory listing in Tomcat?
>
>
> > I used Tomcat and Apache to run jsp where I mapped /jsp to Tomcat to
>handle
> > jsp program, so I can call abc.jsp by http://ip-address/jsp/abc.jsp
>through
> > browser.
> >
> > However, when I call http://ip-address/jsp/ through browser, a list of 
jsp
> > programs under /jsp dirctory were listed. How to disable this 
feature???
> >
> > Joseph.
> >
>____________________________________________________________________________

>_________
> >
> > Get more from the Web.  FREE MSN Explorer download :
>http://explorer.msn.com
> >
> >
>

_____________________________________________________________________________________

Get more from the Web.  FREE MSN Explorer download : http://explorer.msn.com


Mime
View raw message