tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dan Barron <>
Subject Re: How to disable directory listing
Date Wed, 12 Jan 2005 02:40:48 GMT
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.


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.
>Phillip Qin wrote:
>>Do it in your app's web.xml
>>-----Original Message-----
>>From: Lee Chin Khiong [] 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 []
>>Sent: Wednesday, November 24, 2004 2:19 PM
>>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. :)
>To unsubscribe, e-mail:
>For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message