Also, see the "listings" attribute for the StaticInterceptor module:

<http://jakarta.apache.org/tomcat/tomcat-3.3-doc/serverxml.html#StaticInterceptor>

Cheers,
Larry

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 22, 2002 5:02 PM
> To: Tomcat Users List
> Subject: Re: Directory browsing
> 
> 
> 
> The easiest would be to add an index.html. And add the 
> "index.html" to the
> <welcome-file> in the web.xml for that webapp.
> 
> (I don't know if you could do the below in Tomcat 3.3a. I 
> know you can do
> this in Tomcat 4.0.x)
> Turn off directory browsing by adding this for the "default" 
> servlet (see
> web.xml in TOMCAT_HOME/conf/web.xml)
> <init-param>
>        <param-name>listings</param-name>
>        <param-value>false</param-value>
> </init-param>
> 
> RS
> 
> 
> 
> 
> 
> Erwin Ambrosch <[EMAIL PROTECTED]> on 02/22/2002 03:53:13 PM
> 
> Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>
> 
> To:   "Tomcat Users List" <[EMAIL PROTECTED]>
> cc:
> 
> Subject:  Directory browsing
> 
> Hi,
> 
> can one say me how I can switch of directory browsing for TC 3.3a.
> If I send a request http://<host>/<context> I get the 
> directory structure
> of
> the context (docBase) as the response.
> 
> Thanks in advance
> Erwin
> 
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
> 

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to