Re: How to disable directory listing

2005-01-11 Thread Garret Wilson
You can't do it in your app's web.xml---unless you install another 
servlet (which can be the Tomcat default servlet) mapped to root in your 
own web.xml. But then you have to cart around all the Tomcat servlet 
jars in your webapp, because the one that is really the default was 
loaded by another classloader.

Garret
Phillip Qin wrote:
Do it in your app's web.xml
-Original Message-
From: Lee Chin Khiong [mailto:[EMAIL PROTECTED] 
Sent: November 24, 2004 1:29 AM
To: 'Tomcat Users List'
Subject: RE: How to disable directory listing


Is there any better way to configure Tomcat 5 to no Directory listing just
like IIS ?
-Original Message-
From: Quinton Delpeche [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 24, 2004 2:19 PM
To: tomcat-user@jakarta.apache.org
Subject: Re: How to disable directory listing
On Wednesday 24 November 2004 08:09, Lee Chin Khiong wrote:
How to disable directory listing under Tomcat 5 ?

I use a blank index.html file and put it in all the directories that I don't
want to have listed. :)
Q
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: How to disable directory listing

2005-01-11 Thread Dan Barron
Have a look at your tomcat-root/conf/web.xml file - you can turn off 
listings in here for all servlets by setting  the listings initi-param 
to false in the default servlet section.

Dan
At 06:28 PM 1/11/2005, Garret Wilson wrote:
You can't do it in your app's web.xml---unless you install another servlet 
(which can be the Tomcat default servlet) mapped to root in your own 
web.xml. But then you have to cart around all the Tomcat servlet jars in 
your webapp, because the one that is really the default was loaded by 
another classloader.

Garret
Phillip Qin wrote:
Do it in your app's web.xml
-Original Message-
From: Lee Chin Khiong [mailto:[EMAIL PROTECTED] Sent: November 24, 2004 
1:29 AM
To: 'Tomcat Users List'
Subject: RE: How to disable directory listing

Is there any better way to configure Tomcat 5 to no Directory listing just
like IIS ?
-Original Message-
From: Quinton Delpeche [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 24, 2004 2:19 PM
To: tomcat-user@jakarta.apache.org
Subject: Re: How to disable directory listing
On Wednesday 24 November 2004 08:09, Lee Chin Khiong wrote:
How to disable directory listing under Tomcat 5 ?
I use a blank index.html file and put it in all the directories that I don't
want to have listed. :)
Q
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: How to disable directory listing

2005-01-11 Thread Ben Souther
You don't need to install another servlet. servlet-api.jar is in the
common/lib directory (available to all webapps.)

I do it with an entry in my web.xml file that overrides the entry in the
global web.xml:

  servlet
servlet-namehrpdefault/servlet-name
servlet-class
  org.apache.catalina.servlets.DefaultServlet
/servlet-class
init-param
  param-namedebug/param-name
  param-value0/param-value
/init-param
init-param
  param-namelistings/param-name
  param-valuefalse/param-value
/init-param
load-on-startup1/load-on-startup
  /servlet

   The downside to this is that it makes your app less portable.








On Tue, 2005-01-11 at 21:28, Garret Wilson wrote:
 You can't do it in your app's web.xml---unless you install another 
 servlet (which can be the Tomcat default servlet) mapped to root in your 
 own web.xml. But then you have to cart around all the Tomcat servlet 
 jars in your webapp, because the one that is really the default was 
 loaded by another classloader.
 
 Garret
 
 Phillip Qin wrote:
  Do it in your app's web.xml
  
  -Original Message-
  From: Lee Chin Khiong [mailto:[EMAIL PROTECTED] 
  Sent: November 24, 2004 1:29 AM
  To: 'Tomcat Users List'
  Subject: RE: How to disable directory listing
  
  
  
  Is there any better way to configure Tomcat 5 to no Directory listing just
  like IIS ?
  
  -Original Message-
  From: Quinton Delpeche [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, November 24, 2004 2:19 PM
  To: tomcat-user@jakarta.apache.org
  Subject: Re: How to disable directory listing
  
  
  On Wednesday 24 November 2004 08:09, Lee Chin Khiong wrote:
  
 How to disable directory listing under Tomcat 5 ?
  
  
  I use a blank index.html file and put it in all the directories that I don't
  
  want to have listed. :)
  
  Q
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to disable directory listing

2004-11-24 Thread Tim Funk
FAQ!
http://jakarta.apache.org/tomcat/faq/misc.html#listing
-Tim
Lee Chin Khiong wrote:
How to disable directory listing under Tomcat 5 ?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: How to disable directory listing

2004-11-24 Thread Phillip Qin
Do it in your app's web.xml

-Original Message-
From: Lee Chin Khiong [mailto:[EMAIL PROTECTED] 
Sent: November 24, 2004 1:29 AM
To: 'Tomcat Users List'
Subject: RE: How to disable directory listing



Is there any better way to configure Tomcat 5 to no Directory listing just
like IIS ?

-Original Message-
From: Quinton Delpeche [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 24, 2004 2:19 PM
To: [EMAIL PROTECTED]
Subject: Re: How to disable directory listing


On Wednesday 24 November 2004 08:09, Lee Chin Khiong wrote:
 How to disable directory listing under Tomcat 5 ?

I use a blank index.html file and put it in all the directories that I don't

want to have listed. :)

Q
-- 
Quinton Delpeche
Internal Systems Developer
Softline VIP

Telephone: +27 12 420 7000
Direct:+27 12 420 7007
Facsimile: +27 12 420 7344

http://www.vippayroll.co.za/

All snakes who wish to remain in Ireland will please raise their right
hands.
-- Saint Patrick


!DSPAM:41a42e6218041888736547!


How to disable directory listing

2004-11-23 Thread Lee Chin Khiong

How to disable directory listing under Tomcat 5 ?


Re: How to disable directory listing

2004-11-23 Thread Quinton Delpeche
On Wednesday 24 November 2004 08:09, Lee Chin Khiong wrote:
 How to disable directory listing under Tomcat 5 ?

I use a blank index.html file and put it in all the directories that I don't 
want to have listed. :)

Q
-- 
Quinton Delpeche
Internal Systems Developer
Softline VIP

Telephone: +27 12 420 7000
Direct:+27 12 420 7007
Facsimile: +27 12 420 7344

http://www.vippayroll.co.za/

All snakes who wish to remain in Ireland will please raise their right
hands.
-- Saint Patrick


pgpfvPhjde1Rx.pgp
Description: PGP signature


How to disable directory listing ???

2004-11-23 Thread Lee Chin Khiong

How to disable directory listing under Tomcat 5 or Apache 2  ???


RE: How to disable directory listing

2004-11-23 Thread Lee Chin Khiong

Is there any better way to configure Tomcat 5 to no Directory listing just
like IIS ?

-Original Message-
From: Quinton Delpeche [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 24, 2004 2:19 PM
To: [EMAIL PROTECTED]
Subject: Re: How to disable directory listing


On Wednesday 24 November 2004 08:09, Lee Chin Khiong wrote:
 How to disable directory listing under Tomcat 5 ?

I use a blank index.html file and put it in all the directories that I don't

want to have listed. :)

Q
-- 
Quinton Delpeche
Internal Systems Developer
Softline VIP

Telephone: +27 12 420 7000
Direct:+27 12 420 7007
Facsimile: +27 12 420 7344

http://www.vippayroll.co.za/

All snakes who wish to remain in Ireland will please raise their right
hands.
-- Saint Patrick


RE: How to disable directory listing

2004-11-23 Thread Carl Olivier
Yes there is.

In the $CATALINA_HOME/conf/web.xml

Change the init paramter listings to false see below:

init-param
param-namelistings/param-name
param-valuefalse/param-value
/init-param 

Regards,

Carl

-Original Message-
From: Lee Chin Khiong [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 24, 2004 8:29 AM
To: 'Tomcat Users List'
Subject: RE: How to disable directory listing


Is there any better way to configure Tomcat 5 to no Directory listing just
like IIS ?

-Original Message-
From: Quinton Delpeche [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 24, 2004 2:19 PM
To: [EMAIL PROTECTED]
Subject: Re: How to disable directory listing


On Wednesday 24 November 2004 08:09, Lee Chin Khiong wrote:
 How to disable directory listing under Tomcat 5 ?

I use a blank index.html file and put it in all the directories that I don't

want to have listed. :)

Q
--
Quinton Delpeche
Internal Systems Developer
Softline VIP

Telephone: +27 12 420 7000
Direct:+27 12 420 7007
Facsimile: +27 12 420 7344

http://www.vippayroll.co.za/

All snakes who wish to remain in Ireland will please raise their right
hands.
-- Saint Patrick

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How to disable directory listing

2004-11-23 Thread Lee Chin Khiong
Thanks. But what about certain directory ?

-Original Message-
From: Carl Olivier [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 24, 2004 3:00 PM
To: Tomcat Users List
Subject: RE: How to disable directory listing


Yes there is.

In the $CATALINA_HOME/conf/web.xml

Change the init paramter listings to false see below:

init-param
param-namelistings/param-name
param-valuefalse/param-value
/init-param 

Regards,

Carl

-Original Message-
From: Lee Chin Khiong [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 24, 2004 8:29 AM
To: 'Tomcat Users List'
Subject: RE: How to disable directory listing


Is there any better way to configure Tomcat 5 to no Directory listing just
like IIS ?

-Original Message-
From: Quinton Delpeche [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 24, 2004 2:19 PM
To: [EMAIL PROTECTED]
Subject: Re: How to disable directory listing


On Wednesday 24 November 2004 08:09, Lee Chin Khiong wrote:
 How to disable directory listing under Tomcat 5 ?

I use a blank index.html file and put it in all the directories that I don't

want to have listed. :)

Q
--
Quinton Delpeche
Internal Systems Developer
Softline VIP

Telephone: +27 12 420 7000
Direct:+27 12 420 7007
Facsimile: +27 12 420 7344

http://www.vippayroll.co.za/

All snakes who wish to remain in Ireland will please raise their right
hands.
-- Saint Patrick

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Disable Directory listing

2004-05-07 Thread Brett Simpson
How can I disable Directory listing in Tomcat?

Thanks,
Brett


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: Disable Directory listing

2004-05-07 Thread Scott Stewart
In the web.xml in the conf directory, set the listings param to have a value
of false like this:

servlet
servlet-namedefault/servlet-name
servlet-class
  org.apache.catalina.servlets.DefaultServlet
/servlet-class
init-param
param-namedebug/param-name
param-value0/param-value
/init-param
init-param
param-namelistings/param-name
param-valuefalse/param-value
/init-param
load-on-startup1/load-on-startup
/servlet


Thanks,

Scott Stewart
[Manager, Software Development]
[EMAIL PROTECTED]

ClearSky Mobile Media, Inc.
56 E. Pine Street  Suite 200
Orlando, FL  32801
USA





-Original Message-
From: Brett Simpson [mailto:[EMAIL PROTECTED]
Sent: Friday, May 07, 2004 6:43 AM
To: [EMAIL PROTECTED]
Subject: Disable Directory listing


How can I disable Directory listing in Tomcat?

Thanks,
Brett



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Disable Directory listing

2004-05-07 Thread Brett Simpson
Never mind. I figured it out.

 [EMAIL PROTECTED] 5/7/2004 7:42:32 AM 
How can I disable Directory listing in Tomcat?

Thanks,
Brett




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Disable Directory Listing for Specific Apps.

2004-02-20 Thread Ben Souther
That would do except that we are allowing customers to create directories and 
have no guarantee that the welcome file will exist there.  

It would be nice if we could disable directory listing for the entire app from 
within the war file.  We have no guarantee that they won't be using the same 
instance of Tomcat for other apps and we are hoping to avoid walking 
customers through editing the global web.xml file.

It's starting to look like this isn't possible..  :-(




On Thursday 19 February 2004 05:44 pm, Parsons Technical Services wrote:
 If I understand the notes correctly, if you simply include a welcome file
 then TC will not serve up the directory listing. This is also how my setup
 acts. It will not show the directory for my app which has an index file.
 And the global web.xml is untouched.

 See the notes in the global web.xml and Servlet 2.4 specifications.

 Doug
 www.parsonstechnical.com


 - Original Message -
 From: Ben Souther [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Thursday, February 19, 2004 4:54 PM
 Subject: Disable Directory Listing for Specific Apps.


 Is it possible to disable directory listings for a specific web app as
 opposed
 to editing the global web.xml file in TOMCAT_HOME/conf/web.xml?

 We would like to ship our app as a war file and don't want require that our
 customers make global changes to Tomcat for it to behave properly.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Ben Souther
F.W. Davison  Company, Inc.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Disable Directory Listing for Specific Apps.

2004-02-20 Thread Tim Funk
Just decalre a new default servlet in the local webapp's web.xml. Just be 
sure not to call it default since teh global webapp reserved it.

servlet
servlet-namemdefault/servlet-name
servlet-class
  org.apache.catalina.servlets.DefaultServlet
/servlet-class
init-param
param-namelistings/param-name
param-valuefalse/param-value
/init-param
/servlet
servlet-mapping
servlet-namemdefault/servlet-name
url-pattern//url-pattern
/servlet-mapping
-Tim

Ben Souther wrote:
That would do except that we are allowing customers to create directories and 
have no guarantee that the welcome file will exist there.  

It would be nice if we could disable directory listing for the entire app from 
within the war file.  We have no guarantee that they won't be using the same 
instance of Tomcat for other apps and we are hoping to avoid walking 
customers through editing the global web.xml file.

It's starting to look like this isn't possible..  :-(



On Thursday 19 February 2004 05:44 pm, Parsons Technical Services wrote:

If I understand the notes correctly, if you simply include a welcome file
then TC will not serve up the directory listing. This is also how my setup
acts. It will not show the directory for my app which has an index file.
And the global web.xml is untouched.
See the notes in the global web.xml and Servlet 2.4 specifications.

Doug
www.parsonstechnical.com
- Original Message -
From: Ben Souther [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, February 19, 2004 4:54 PM
Subject: Disable Directory Listing for Specific Apps.
Is it possible to disable directory listings for a specific web app as
opposed
to editing the global web.xml file in TOMCAT_HOME/conf/web.xml?
We would like to ship our app as a war file and don't want require that our
customers make global changes to Tomcat for it to behave properly.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Disable Directory Listing for Specific Apps.

2004-02-20 Thread Jerry Ford
Ben:

The proverbial $.02 of opinion:  If the customer owns the directory, 
then doesn't the customer also own the decision to allow files in it to 
be listed?

Seems like it is an easier documentation problem to explain how to 
prevent listings (include an index.html file in your directory if you 
don't want...blah blah blah) than to explain how to edit the global 
web.xml file.  Also a less perilous task for the user, since a typo in 
the web.xml file could screw up everything.

Jerry

Ben Souther wrote:

That would do except that we are allowing customers to create directories and 
have no guarantee that the welcome file will exist there.  

It would be nice if we could disable directory listing for the entire app from 
within the war file.  We have no guarantee that they won't be using the same 
instance of Tomcat for other apps and we are hoping to avoid walking 
customers through editing the global web.xml file.

It's starting to look like this isn't possible..  :-(



On Thursday 19 February 2004 05:44 pm, Parsons Technical Services wrote:
 

If I understand the notes correctly, if you simply include a welcome file
then TC will not serve up the directory listing. This is also how my setup
acts. It will not show the directory for my app which has an index file.
And the global web.xml is untouched.
See the notes in the global web.xml and Servlet 2.4 specifications.

Doug
www.parsonstechnical.com
- Original Message -
From: Ben Souther [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, February 19, 2004 4:54 PM
Subject: Disable Directory Listing for Specific Apps.
Is it possible to disable directory listings for a specific web app as
opposed
to editing the global web.xml file in TOMCAT_HOME/conf/web.xml?
We would like to ship our app as a war file and don't want require that our
customers make global changes to Tomcat for it to behave properly.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   

 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Disable Directory Listing for Specific Apps.

2004-02-20 Thread Ben Souther
This is great,
Thanks Tim.



On Friday 20 February 2004 11:44 am, Tim Funk wrote:
 Just decalre a new default servlet in the local webapp's web.xml. Just be
 sure not to call it default since teh global webapp reserved it.

  servlet
  servlet-namemdefault/servlet-name
  servlet-class
org.apache.catalina.servlets.DefaultServlet
  /servlet-class
  init-param
  param-namelistings/param-name
  param-valuefalse/param-value
  /init-param
  /servlet
  servlet-mapping
  servlet-namemdefault/servlet-name
  url-pattern//url-pattern
  /servlet-mapping


 -Tim

 Ben Souther wrote:
  That would do except that we are allowing customers to create directories
  and have no guarantee that the welcome file will exist there.
 
  It would be nice if we could disable directory listing for the entire app
  from within the war file.  We have no guarantee that they won't be using
  the same instance of Tomcat for other apps and we are hoping to avoid
  walking customers through editing the global web.xml file.
 
  It's starting to look like this isn't possible..  :-(
 
  On Thursday 19 February 2004 05:44 pm, Parsons Technical Services wrote:
 If I understand the notes correctly, if you simply include a welcome file
 then TC will not serve up the directory listing. This is also how my
  setup acts. It will not show the directory for my app which has an index
  file. And the global web.xml is untouched.
 
 See the notes in the global web.xml and Servlet 2.4 specifications.
 
 Doug
 www.parsonstechnical.com
 
 
 - Original Message -
 From: Ben Souther [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Thursday, February 19, 2004 4:54 PM
 Subject: Disable Directory Listing for Specific Apps.
 
 
 Is it possible to disable directory listings for a specific web app as
 opposed
 to editing the global web.xml file in TOMCAT_HOME/conf/web.xml?
 
 We would like to ship our app as a war file and don't want require that
  our customers make global changes to Tomcat for it to behave properly.

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Ben Souther
F.W. Davison  Company, Inc.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Disable Directory Listing for Specific Apps.

2004-02-20 Thread Bodycombe, Andrew
I don't know if this would work because I've never tried it, but you could
try overriding the default servlet in each of your webapps (just copy the
servlet and servlet-mapping from the TOMCAT_HOME/conf/web.xml)

Then you can control the 'listings' parameter in each individual web
application, instead of relying on the setting in the default web.xml.

-Original Message-
From: Ben Souther [mailto:[EMAIL PROTECTED] 
Sent: 20 February 2004 16:36
To: Tomcat Users List
Subject: Re: Disable Directory Listing for Specific Apps.


That would do except that we are allowing customers to create directories
and 
have no guarantee that the welcome file will exist there.  

It would be nice if we could disable directory listing for the entire app
from 
within the war file.  We have no guarantee that they won't be using the same

instance of Tomcat for other apps and we are hoping to avoid walking 
customers through editing the global web.xml file.

It's starting to look like this isn't possible..  :-(




On Thursday 19 February 2004 05:44 pm, Parsons Technical Services wrote:
 If I understand the notes correctly, if you simply include a welcome file
 then TC will not serve up the directory listing. This is also how my setup
 acts. It will not show the directory for my app which has an index file.
 And the global web.xml is untouched.

 See the notes in the global web.xml and Servlet 2.4 specifications.

 Doug
 www.parsonstechnical.com


 - Original Message -
 From: Ben Souther [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Thursday, February 19, 2004 4:54 PM
 Subject: Disable Directory Listing for Specific Apps.


 Is it possible to disable directory listings for a specific web app as
 opposed
 to editing the global web.xml file in TOMCAT_HOME/conf/web.xml?

 We would like to ship our app as a war file and don't want require that
our
 customers make global changes to Tomcat for it to behave properly.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Ben Souther
F.W. Davison  Company, Inc.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Disable Directory Listing for Specific Apps.

2004-02-19 Thread Ben Souther
Is it possible to disable directory listings for a specific web app as opposed 
to editing the global web.xml file in TOMCAT_HOME/conf/web.xml?

We would like to ship our app as a war file and don't want require that our 
customers make global changes to Tomcat for it to behave properly.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Disable Directory Listing for Specific Apps.

2004-02-19 Thread Parsons Technical Services
If I understand the notes correctly, if you simply include a welcome file
then TC will not serve up the directory listing. This is also how my setup
acts. It will not show the directory for my app which has an index file. And
the global web.xml is untouched.

See the notes in the global web.xml and Servlet 2.4 specifications.

Doug
www.parsonstechnical.com


- Original Message - 
From: Ben Souther [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, February 19, 2004 4:54 PM
Subject: Disable Directory Listing for Specific Apps.


Is it possible to disable directory listings for a specific web app as
opposed
to editing the global web.xml file in TOMCAT_HOME/conf/web.xml?

We would like to ship our app as a war file and don't want require that our
customers make global changes to Tomcat for it to behave properly.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Disable Directory Listing

2003-11-26 Thread Yuval Zantkeren
HI,

How do I disable that in the Tomcat 4.1.27 that if someone write only the
directory like 127.0.0.1/servlet  with no
file name after and he gets Directory Listing of all the directory.


Regards,

Yuval Zantkeren


This email message and any attachments hereto are intended only for use by
the addressee(s) named above, and may contain legally privileged and/or
confidential information. If you are not the intended addressee, you are
hereby kindly notified that any dissemination, distribution or copying of
this email and any attachments hereto is strictly prohibited. If you have
received this email in error, kindly delete it from your computer system,
and notify us at the telephone number or email address appearing above.
Thank you



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Disable Directory Listing

2003-11-26 Thread Tim Funk
http://jakarta.apache.org/tomcat/faq/misc.html#listing

Yuval Zantkeren wrote:

HI,

How do I disable that in the Tomcat 4.1.27 that if someone write only the
directory like 127.0.0.1/servlet  with no
file name after and he gets Directory Listing of all the directory.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Disable Directory Listing

2003-11-26 Thread Yuval Zantkeren
Its not working do i need to change it in each web.xml under each directory
or just in the
conf/web.xml?

Regards,

Yuval Zantkeren

This email message and any attachments hereto are intended only for use by
the addressee(s) named above, and may contain legally privileged and/or
confidential information. If you are not the intended addressee, you are
hereby kindly notified that any dissemination, distribution or copying of
this email and any attachments hereto is strictly prohibited. If you have
received this email in error, kindly delete it from your computer system,
and notify us at the telephone number or email address appearing above.
Thank you


-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 26, 2003 2:33 PM
To: Tomcat Users List
Subject: Re: Disable Directory Listing


http://jakarta.apache.org/tomcat/faq/misc.html#listing

Yuval Zantkeren wrote:

 HI,

 How do I disable that in the Tomcat 4.1.27 that if someone write only the
 directory like 127.0.0.1/servlet  with no
 file name after and he gets Directory Listing of all the directory.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Disable Directory Listing

2003-11-26 Thread Tim Funk
Only $CATALINA_HOME/conf/web.xml needs changed. (Make sure browser cache is 
cleared)

-Tim

Yuval Zantkeren wrote:

Its not working do i need to change it in each web.xml under each directory
or just in the
conf/web.xml?
Regards,

Yuval Zantkeren

This email message and any attachments hereto are intended only for use by
the addressee(s) named above, and may contain legally privileged and/or
confidential information. If you are not the intended addressee, you are
hereby kindly notified that any dissemination, distribution or copying of
this email and any attachments hereto is strictly prohibited. If you have
received this email in error, kindly delete it from your computer system,
and notify us at the telephone number or email address appearing above.
Thank you
-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 26, 2003 2:33 PM
To: Tomcat Users List
Subject: Re: Disable Directory Listing
http://jakarta.apache.org/tomcat/faq/misc.html#listing

Yuval Zantkeren wrote:


HI,

How do I disable that in the Tomcat 4.1.27 that if someone write only the
directory like 127.0.0.1/servlet  with no
file name after and he gets Directory Listing of all the directory.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Disable Directory Listing

2003-11-26 Thread Yuval Zantkeren
I wrote false in the listing but it still giving the listing, any idea?

Regards,

Yuval Zantkeren

Domain The Net Technologies Ltd.
81 Sokolov St.
Ramat-Hasharon
Israel 47238
Tel: 972-3-7600500
Fax: 972-3-7600505
www.DomainTheNet.com

This email message and any attachments hereto are intended only for use by
the addressee(s) named above, and may contain legally privileged and/or
confidential information. If you are not the intended addressee, you are
hereby kindly notified that any dissemination, distribution or copying of
this email and any attachments hereto is strictly prohibited. If you have
received this email in error, kindly delete it from your computer system,
and notify us at the telephone number or email address appearing above.
Thank you


-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 26, 2003 3:19 PM
To: Tomcat Users List
Subject: Re: Disable Directory Listing


Only $CATALINA_HOME/conf/web.xml needs changed. (Make sure browser cache is
cleared)

-Tim

Yuval Zantkeren wrote:

 Its not working do i need to change it in each web.xml under each
directory
 or just in the
 conf/web.xml?

 Regards,

 Yuval Zantkeren

 This email message and any attachments hereto are intended only for use
by
 the addressee(s) named above, and may contain legally privileged and/or
 confidential information. If you are not the intended addressee, you are
 hereby kindly notified that any dissemination, distribution or copying of
 this email and any attachments hereto is strictly prohibited. If you have
 received this email in error, kindly delete it from your computer system,
 and notify us at the telephone number or email address appearing above.
 Thank you


 -Original Message-
 From: Tim Funk [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, November 26, 2003 2:33 PM
 To: Tomcat Users List
 Subject: Re: Disable Directory Listing


 http://jakarta.apache.org/tomcat/faq/misc.html#listing

 Yuval Zantkeren wrote:


HI,

How do I disable that in the Tomcat 4.1.27 that if someone write only the
directory like 127.0.0.1/servlet  with no
file name after and he gets Directory Listing of all the directory.




 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Disable Directory Listing

2003-11-26 Thread Tim Funk
You need to restart tomcat for the property to take effect.

Yuval Zantkeren wrote:

I wrote false in the listing but it still giving the listing, any idea?
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: how can I disable directory listing at client side

2003-02-27 Thread Kwong Chong
Hmmm should have thought to check this out earlier.. it looks like
tomcat is indeed processing the request.

But given that there is no uri directive governing the forwarding of 
/images/ would it be a bug then that it is forwarded to tomcat?

-Original Message-
From: Tam, Michael [mailto:[EMAIL PROTECTED]
Sent: Thursday, 27 February 2003 9:50
To: 'Tomcat Users List'
Subject: RE: how can I disable directory listing at client side


The listing maybe coming from tomcat itself.  Make sure you disable tomcat
directory listing as well.

-Original Message-
From: Kwong Chong [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 26, 2003 2:31 PM
To: [EMAIL PROTECTED]
Subject: RE: how can I disable directory listing at client side


Hmm I have a similar problem that's been bugging me - 
The way I normally disable directory listing is to remove the 
Options Indexes option from the Directory directive, ending up with

Directory /
Options FollowSymLinks
AllowOverride None
/Directory

With apache running alone, this all works fine, if you try to get a
directory listing, you get a forbidden message - everything a ok!

When I then configure apache to use modjk2, and to auto forward dynamic
pages to the application server, ie adding

DirectoryIndex  index.jsp index.html

in httpd.conf,

and

[uri:/*.jsp]
worker=lb:workerLB

in workers2.properties,

Everything seems to work fine; dynamic pages work etc, but I can now get
directory listings!

When I change DirectoryIndex to just
DirectoryIndex index.html

directory listing is disabled again,
or when I remove the 
[uri:/*.jsp]
worker=lb:workerLB
from workers2.properties,
directory listing is disabled too!

Any ideas?

Kwong.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 26 February 2003 8:22
To: [EMAIL PROTECTED]
Subject: RE: how can I disable directory listing at client side


Do it in your apache httpd.conf

Regards,
 
 
PQ
 
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing

-Original Message-
From: runu rathi [mailto:[EMAIL PROTECTED] 
Sent: February 25, 2003 3:33 PM
To: [EMAIL PROTECTED]
Subject: how can I disable directory listing at client side

Hi all,
  How can I disable the directory listing to be shown
when someone tries to load my application remotely
through a browser?
I shall appreciate any help.
Thanks,
Runu

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Powered by telstra.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Powered by telstra.com

 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: how can I disable directory listing at client side

2003-02-26 Thread Tam, Michael
The listing maybe coming from tomcat itself.  Make sure you disable tomcat
directory listing as well.

-Original Message-
From: Kwong Chong [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 26, 2003 2:31 PM
To: [EMAIL PROTECTED]
Subject: RE: how can I disable directory listing at client side


Hmm I have a similar problem that's been bugging me - 
The way I normally disable directory listing is to remove the 
Options Indexes option from the Directory directive, ending up with

Directory /
Options FollowSymLinks
AllowOverride None
/Directory

With apache running alone, this all works fine, if you try to get a
directory listing, you get a forbidden message - everything a ok!

When I then configure apache to use modjk2, and to auto forward dynamic
pages to the application server, ie adding

DirectoryIndex  index.jsp index.html

in httpd.conf,

and

[uri:/*.jsp]
worker=lb:workerLB

in workers2.properties,

Everything seems to work fine; dynamic pages work etc, but I can now get
directory listings!

When I change DirectoryIndex to just
DirectoryIndex index.html

directory listing is disabled again,
or when I remove the 
[uri:/*.jsp]
worker=lb:workerLB
from workers2.properties,
directory listing is disabled too!

Any ideas?

Kwong.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 26 February 2003 8:22
To: [EMAIL PROTECTED]
Subject: RE: how can I disable directory listing at client side


Do it in your apache httpd.conf

Regards,
 
 
PQ
 
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing

-Original Message-
From: runu rathi [mailto:[EMAIL PROTECTED] 
Sent: February 25, 2003 3:33 PM
To: [EMAIL PROTECTED]
Subject: how can I disable directory listing at client side

Hi all,
  How can I disable the directory listing to be shown
when someone tries to load my application remotely
through a browser?
I shall appreciate any help.
Thanks,
Runu

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Powered by telstra.com

 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: how can I disable directory listing at client side

2003-02-26 Thread Chong Yu Meng
Hello all :

Answered this question before. See 
http://www.kurtwerks.com/sxs/internet_serving/tomcat4.1x.html#5.1

Regards,
pascal chong
Tam, Michael wrote:

The listing maybe coming from tomcat itself.  Make sure you disable tomcat
directory listing as well.
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


how can I disable directory listing at client side

2003-02-25 Thread runu rathi
Hi all,
  How can I disable the directory listing to be shown
when someone tries to load my application remotely
through a browser?
I shall appreciate any help.
Thanks,
Runu

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: how can I disable directory listing at client side

2003-02-25 Thread pqin
Do it in your apache httpd.conf

Regards,
 
 
PQ
 
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing

-Original Message-
From: runu rathi [mailto:[EMAIL PROTECTED] 
Sent: February 25, 2003 3:33 PM
To: [EMAIL PROTECTED]
Subject: how can I disable directory listing at client side

Hi all,
  How can I disable the directory listing to be shown
when someone tries to load my application remotely
through a browser?
I shall appreciate any help.
Thanks,
Runu

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: how can I disable directory listing at client side

2003-02-25 Thread Tam, Michael
It is in the web.xml where you can set it to false to disable it.

-Original Message-
From: runu rathi [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 12:33 PM
To: [EMAIL PROTECTED]
Subject: how can I disable directory listing at client side


Hi all,
  How can I disable the directory listing to be shown
when someone tries to load my application remotely
through a browser?
I shall appreciate any help.
Thanks,
Runu

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How to disable directory listing

2003-02-12 Thread Chiming Huang

Hi,

How can we disable directory listing for just a web application under tomcat 4.0.4?  
Thanks.

Chiming



-
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day


disable directory listing in tomcat 4.1.12

2002-11-17 Thread Yandell Cacton
Hi,

I upgraded my server from Tomcat 3.3 to Tomcat 4.1.12,
and could not figure out how to disable directory
listing.

It was done by setting StaticInterceptor's listing
attribute to false in Tomcat 3.3, but it looks like
StaticInterceptor is no longer part of Tomcat 4.1.12's
server.xml?

I have read the configuration documentation on
jakarta/tomcat web site and can't find any information
re this.

Cheers,
YC

http://careers.yahoo.com.au - Yahoo! Careers
- 1,000's of jobs waiting online for you!

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: disable directory listing in tomcat 4.1.12

2002-11-17 Thread Bill Barker
Yeah, well, there are a lot of thing that I miss from 3.3 that aren't in
4.1.x :)

To answer your question, you need to edit the $CATALINA_HOME/conf/web.xml
file, and change the param-namelistings/param-name param-value for the
default servlet from true to false.

Yandell Cacton [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Hi,

 I upgraded my server from Tomcat 3.3 to Tomcat 4.1.12,
 and could not figure out how to disable directory
 listing.

 It was done by setting StaticInterceptor's listing
 attribute to false in Tomcat 3.3, but it looks like
 StaticInterceptor is no longer part of Tomcat 4.1.12's
 server.xml?

 I have read the configuration documentation on
 jakarta/tomcat web site and can't find any information
 re this.

 Cheers,
 YC

 http://careers.yahoo.com.au - Yahoo! Careers
 - 1,000's of jobs waiting online for you!





--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




How to disable directory listing in Tomcat?

2000-11-26 Thread Joseph Wong

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 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 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 [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






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 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 [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 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)

DirectoryMatch /jsp
AllowOverride None
Options None
allow from all
/DirectoryMatch


-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