tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reynir Hübner <rey...@hugsmidjan.is>
Subject RE: Urgent Disable Directory browse
Date Sat, 19 Jan 2002 13:04:59 GMT
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>


Mime
View raw message