You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Marc Mendez <me...@lug.com> on 2002/11/05 11:51:03 UTC
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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Standalone Tomcat : suppress directory listing in web.xml
Posted by Marc Mendez <me...@lug.com>.
Opps, I have tested this in the conf/web.xml file : no effect !
>
> <init-param>
> <param-name>listings</param-name>
> <param-value>false</param-value>
> </init-param>
>
> Kiev
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Standalone Tomcat : suppress directory listing in web.xml
Posted by Marc Mendez <me...@lug.com>.
Hi,
Yes, but it means that I change the behaviour of the others app !
----- Original Message -----
From: "Kiev" <ki...@pbt.com.br>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: Tuesday, November 05, 2002 3:55 PM
Subject: Re: Standalone Tomcat : suppress directory listing in web.xml
>
> 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
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Standalone Tomcat : suppress directory listing in web.xml
Posted by Kiev <ki...@pbt.com.br>.
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" <me...@lug.com>
To: <to...@jakarta.apache.org>
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:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>