If you set the following param for the default servlet to false, in the
CATALINA_HOME/conf/web.xml  it will forbid directory listing for all
web-apps.
lthoug I haven't checked how to do it for the webapp web.xml file.

    <init-param>
      <param-name>listings</param-name>
      <param-value>false</param-value>
    </init-param>

Kiev

----- Original Message -----
From: "Marc Mendez" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 05, 2002 8:51 AM
Subject: Standalone Tomcat : suppress directory listing in web.xml


> Hi,
>
> I browse the archive, but I found just a part of the answer.
>
> I use Tomcat standalone (the app will run under tomcat 3.x and 4.x). I
want
> to prevent access to directories, but I just want to configure this in the
> web.xml file of my app, nowhere else !
> As u see below, the web.xml is quite simple !
>
> <web-app>
>
> <servlet>
>      <servlet-name>WindexServer</servlet-name>
>  <servlet-class>windexserver.servlet.WindexServlet</servlet-class>
>  <init-param>
>   <param-name>PropertiesFileName</param-name>
>
>
<param-value>D:/Appli/tomcat/webapps/WindexServer/WS_Manager/internal/config
> .ini</param-value>
>  </init-param>
> </servlet>
>
> <servlet-mapping>
>  <servlet-name>WindexServer</servlet-name>
>  <url-pattern>/WindexServer</url-pattern>
> </servlet-mapping>
>
> </web-app>
>
> If u have any idea :-))
>
>
> --
> To unsubscribe, e-mail:
<mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail:
<mailto:tomcat-user-help@;jakarta.apache.org>
>
>



--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>

Reply via email to