tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rseque...@transentric.com
Subject Re: Directory browsing
Date Fri, 22 Feb 2002 22:01:31 GMT

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 <ambre@ebutec.com> on 02/22/2002 03:53:13 PM

Please respond to "Tomcat Users List" <tomcat-user@jakarta.apache.org>

To:   "Tomcat Users List" <tomcat-user@jakarta.apache.org>
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:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>









--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message