RE: How to disable directory listing in Tomcat?

2000-11-26 Thread Saurabh Shukla

1) Give a welcome file in your web.xml (if all your requests in /jsp goes to
tomcat.
2) Check the "options" in Directory directive(Apache documentation).

 Try something this in your httpd.conf(it might do the job for you)


AllowOverride None
Options None
allow from all



-Original Message-
From: Joseph Wong [mailto:[EMAIL PROTECTED]]
Sent: Sunday, November 26, 2000 9:01 PM
To: [EMAIL PROTECTED]
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




Re: How to disable directory listing in Tomcat?

2000-11-26 Thread Joseph Wong

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)" <[EMAIL PROTECTED]>
>Reply-To: "Julio Serje (@canada.com)" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>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  section:
>
>
> 
>
> index.jsp
> 
> 
> index.html
> 
> 
> index.htm
> 
>
>  
> 
> abc.jsp
> 
>
> 
>
>
>Julio
>
>- Original Message -
>From: Joseph Wong <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>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




Re: How to disable directory listing in Tomcat?

2000-11-26 Thread Julio Serje (@canada.com)

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  section:



   
index.jsp


index.html


index.htm


 

abc.jsp





Julio

- Original Message -
From: Joseph Wong <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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
>
>