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
[EMAIL PROTECTED]


-----Original Message-----
From: Galbayar [mailto:[EMAIL PROTECTED]]
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:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to