You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by sankar kondur <sh...@yahoo.com> on 2001/09/06 01:51:10 UTC

Supressing directory contents listing in tomcat 4.0

Has anyone figured how to suppress directory contents
listing in Tomcat 4.0

Checked the code, looks like it shouldn't list
directory contents at all, but doesn't work.

thanks,
SK

=====


__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com

Re: Supressing directory contents listing in tomcat 4.0

Posted by "Craig R. McClanahan" <cr...@apache.org>.
The behavior of the default file-serving servlet, like all other built in
servlets for Tomcat 4.0, is controlled by servlet initialization
parameters in the <code>$CATALINA_HOME/conf/web.xml</conf> file that
provides the defaults for all of your web applications.  In particular,
under the "default" servlet, set the "listings" parameter to false if you
do not want directory listings.

Craig

PS:  No, it's not clearly documented yet ... that's coming soon


On Wed, 5 Sep 2001, sankar kondur wrote:

> Date: Wed, 5 Sep 2001 16:51:10 -0700 (PDT)
> From: sankar kondur <sh...@yahoo.com>
> Reply-To: tomcat-user@jakarta.apache.org
> To: tomcat-user@jakarta.apache.org
> Subject: Supressing directory contents listing in tomcat 4.0
>
> Has anyone figured how to suppress directory contents
> listing in Tomcat 4.0
>
> Checked the code, looks like it shouldn't list
> directory contents at all, but doesn't work.
>
> thanks,
> SK
>
> =====
>
>
> __________________________________________________
> Do You Yahoo!?
> Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
> http://im.yahoo.com
>