tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <craig...@apache.org>
Subject Re: Catalina Directory Listing
Date Fri, 13 Dec 2002 03:18:55 GMT


On Thu, 12 Dec 2002, Gerrit Grobbelaar wrote:

> Date: Thu, 12 Dec 2002 12:47:35 +0200
> From: Gerrit Grobbelaar <gerrit@redshift.co.za>
> Reply-To: Tomcat Users List <tomcat-user@jakarta.apache.org>
> To: Tomcat Users List <tomcat-user@jakarta.apache.org>
> Subject: Catalina Directory Listing
>
> How must I configure Catalina (Tomcat 4.1.12) so that it doesn't show a
> directory listing of the directories that don't have any welcome-files? The
> Valve Component? How? etc.
>
> Currently I have a weak sollution (IMHO):
> Implementing "org.apache.catalina.servlets.DefaultServlet" and give it (via
> web.xml):
> <init-param>
>   <param-name>listings</param-name>
>   <param-value>false</param-value>
> </init-param>
> and then i just map that servlet to the directory/directories i don't want
> to show a listing.
>

If you set the listings init parameter for the "default" servlet to false
in $CATALINA_HOME/conf/web.xml, you've just changed the global default.

> Thanks in advance
> Gerrit

Craig


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


Mime
View raw message