RE: Newbie Q:How to prevent Directory listing in Tomcat?

2003-06-10 Thread Phillip Qin
In Tomcat's web.xml, under defaultServlet, change listings to false. It will
disable listings for all of the webapps.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: June 8, 2003 7:02 PM
To: [EMAIL PROTECTED]
Subject: Newbie Q:How to prevent Directory listing in Tomcat?

How can I prevent a client from listing the contents of my web appl. 
directories without having to put an 'index.html' in the base of each
directory?

Thanks.

Bob.

P.s.: I can find any solution(s) in the Tomcat-user archive:


RE: Newbie Q:How to prevent Directory listing in Tomcat?

2003-06-09 Thread David Legg
Hi Bob,

In version 4.x Tomcat look for the file TOMCAT_HOME/conf/web.xml

This file sets all the default web application settings.  Look for the tag
sequence: -

  param-namelistings/param-name

And change the param-value tag below it from 'true' (the default setting)
to false.

Hope that helps.


David Legg


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 09 June 2003 00:02
To: [EMAIL PROTECTED]
Subject: Newbie Q:How to prevent Directory listing in Tomcat?


How can I prevent a client from listing the contents of my web appl. 
directories without having to put an 'index.html' in the base of each
directory?

Thanks.

Bob.

P.s.: I can find any solution(s) in the Tomcat-user archive:

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



RE: Newbie Q:How to prevent Directory listing in Tomcat?

2003-06-09 Thread Phillip Qin
Having gone thru the source code, I figured out that this init param will
only work with DefaultServlet. I wish we could have something similar to
apache's per-directory disable/enable.

-Original Message-
From: David Legg [mailto:[EMAIL PROTECTED] 
Sent: June 9, 2003 5:50 AM
To: 'Tomcat Users List'
Subject: RE: Newbie Q:How to prevent Directory listing in Tomcat?

Hi Bob,

In version 4.x Tomcat look for the file TOMCAT_HOME/conf/web.xml

This file sets all the default web application settings.  Look for the tag
sequence: -

  param-namelistings/param-name

And change the param-value tag below it from 'true' (the default setting)
to false.

Hope that helps.


David Legg


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 09 June 2003 00:02
To: [EMAIL PROTECTED]
Subject: Newbie Q:How to prevent Directory listing in Tomcat?


How can I prevent a client from listing the contents of my web appl. 
directories without having to put an 'index.html' in the base of each
directory?

Thanks.

Bob.

P.s.: I can find any solution(s) in the Tomcat-user archive:

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


Re: Newbie Q:How to prevent Directory listing in Tomcat?

2003-06-08 Thread Tim Funk
http://tomcatfaq.sourceforge.net/configure.html

-Tim



[EMAIL PROTECTED] wrote:
How can I prevent a client from listing the contents of my web appl. 
directories without having to put an 'index.html' in the base of each directory?

Thanks.

Bob.

P.s.: I can find any solution(s) in the Tomcat-user archive:



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