You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Rahul Torvi <to...@dpsl.net> on 2002/12/28 08:03:01 UTC

disabling the directory listing in tomcat

Hello 

I have a requirement that the tomcat server should not show
the directory listing when anybody writes URL which ends in 
a folder name.


One option that is available is putting a index.html or any other 
welcome-page, but this would be a crude method to say the 
least. 

I would want to strictly disable from the tomcat server...Is it possible

Regds

Rahul

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: disabling the directory listing in tomcat

Posted by Bill Barker <wb...@wilshire.com>.
"Rahul Torvi" <to...@dpsl.net> wrote in message
news:OFEJIFFHCOGKLLIACNGDKEKAFDAA.torvir@dpsl.net...
> Hello
>
> I have a requirement that the tomcat server should not show
> the directory listing when anybody writes URL which ends in
> a folder name.

Well, one answer would be RTFM :-).

I'm going to assume that you are using Tomcat 4.x.  The answer for Tomcat
3.3 is slightly different.  You need to edit $CATALINA_HOME/conf/web.xml and
locate the 'listing' param for the 'default' servlet.  Then change the value
from 'true' to 'false'.

>
>
> One option that is available is putting a index.html or any other
> welcome-page, but this would be a crude method to say the
> least.
>
> I would want to strictly disable from the tomcat server...Is it possible
>
> Regds
>
> Rahul





--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>