[jboss-user] [Beginners Corner] - Re: Directory Listing

jaikiran do-not-reply at jboss.com
Mon Sep 4 05:23:33 EDT 2006


You can set this option in the web.xml file present at: %JBOSS_HOME%/server/default/deploy/jbossweb-tomcat41.sar/META-INF directory.

In this web.xml you will find something like:

 <!-- ================== Built In Servlet Definitions ==================== -->
  | 
  | 
  |   <!-- The default servlet for all web applications, that serves static     -->
  |   <!-- resources.  It processes all requests that are not mapped to other   -->
  |   <!-- servlets with servlet mappings (defined either here or in your own   -->
  |   <!-- web.xml file.  This servlet supports the following initialization    -->
  |   <!-- parameters (default values are in square brackets):                  -->
  |   <!--                                                                      -->
  |   <!--   debug               Debugging detail level for messages logged     -->
  |   <!--                       by this servlet.  [0]                          -->
  |   <!--                                                                      -->
  |   <!--   input               Input buffer size (in bytes) when reading      -->
  |   <!--                       resources to be served.  [2048]                -->
  |   <!--                                                                      -->
  |   <!--   listings            Should directory listings be produced if there -->
  |   <!--                       is no welcome file in this directory?  [true]  -->
  |   <!--                                                                      -->
  |   <!--   output              Output buffer size (in bytes) when writing     -->
  |   <!--                       resources to be served.  [2048]                -->
  |   <!--                                                                      -->
  |   <!--   readonly            Is this context "read only", so HTTP           -->
  |   <!--                       commands like PUT and DELETE are               -->
  |   <!--                       rejected?  [true]                              -->
  | 
  |     <servlet>
  |         <servlet-name>default</servlet-name>
  |         <servlet-class>
  |           org.apache.catalina.servlets.DefaultServlet
  |         </servlet-class>
  |         <init-param>
  |             <param-name>debug</param-name>
  |             <param-value>0</param-value>
  |         </init-param>
  |         <init-param>
  |             <param-name>listings</param-name>
  |             <param-value>true</param-value>  
  |       </init-param>
  |         <load-on-startup>1</load-on-startup>
  |     </servlet>

You will have to change the 'listings' init param value to false:

 <init-param>
  |            <param-name>listings</param-name>
  |             <param-value>false</param-value> 
  |       </init-param>



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3969184#3969184

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3969184



More information about the jboss-user mailing list