tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Galbayar" <galba...@mobicom.mn>
Subject Re: Urgent Disable Directory browse
Date Tue, 22 Jan 2002 10:06:39 GMT
i'm changed web.xml but tomcat error
how to disable this error?

Apache Tomcat/4.0.1 - HTTP Status 404 - /

----------------------------------------------------------------------------
----

type Status report

message /

description The requested resource (/) is not available.


----- Original Message -----
From: "Reynir Hübner" <reynir@hugsmidjan.is>
To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
Sent: Saturday, January 19, 2002 21:04
Subject: RE: Urgent Disable Directory browse


well just change the global web.xml (in your tomcat/conf/ directory).

change the mapping for default servlet so listings are false:

<servlet>
    <servlet-name>default</servlet-name>

<servlet-class>org.apache.catalina.servlets.DefaultServlet</servlet-clas
s>
    <init-param>
      <param-name>debug</param-name>
      <param-value>0</param-value>
    </init-param>
    <init-param>
      <param-name>listings</param-name>
      <param-value>false</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
</servlet>

hope it helps
-reynir@hugsmidjan.is


-----Original Message-----
From: Galbayar [mailto:galbayar@mobicom.mn]
Sent: 19. janúar 2002 04:47
To: Tomcat Users List
Subject: Urgent Disable Directory browse


Hello All !

How to disable directory browse on Tomcat?
if i rename webapps/ROOT/index.jsp to webapps/ROOT/index2.jsp Tomcat
browse ROOT directory.

--
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