On Thu, 12 Dec 2002, Gerrit Grobbelaar wrote:

> Date: Thu, 12 Dec 2002 12:47:35 +0200
> From: Gerrit Grobbelaar <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> 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:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to