You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by cr...@locus.apache.org on 2000/08/04 02:53:12 UTC

cvs commit: jakarta-tomcat/proposals/catalina/src/manager/WEB-INF web.xml

craigmcc    00/08/03 17:53:11

  Added:       proposals/catalina/src/manager/WEB-INF web.xml
  Log:
  Forgot to add the "web.xml" file for the new manager application.
  
  Revision  Changes    Path
  1.1                  jakarta-tomcat/proposals/catalina/src/manager/WEB-INF/web.xml
  
  Index: web.xml
  ===================================================================
  <?xml version="1.0" encoding="ISO-8859-1"?>
  
  <!DOCTYPE web-app
      PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
      "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
  
  <web-app>
  
    <!--  NOTE:
  
          This application is installed by default, but it will not be
  	usable until the system administrator adds a valid user with
  	the role indicated below (normally "manager") to the Realm
  	that is used for this app.  By default, that means editing the
  	"$CATALINA_HOME/conf/tomcat-users.xml" file.
  
    -->
  
    <!-- ===================== The Manager Servlet ========================== -->
    <servlet>
      <servlet-name>Manager</servlet-name>
      <servlet-class>org.apache.tomcat.servlets.ManagerServlet</servlet-class>
      <init-param>
        <param-name>debug</param-name>
        <param-value>0</param-value>
      </init-param>
    </servlet>
  
    <!-- ===================== Default Servlet Mapping ====================== -->
    <servlet-mapping>
      <servlet-name>Manager</servlet-name>
      <url-pattern>/</url-pattern>
    </servlet-mapping>
  
    <!-- ===================== Security Constraint ========================== -->
    <security-constraint>
      <web-resource-collection>
        <url-pattern>/*</url-pattern>
      </web-resource-collection>
      <auth-constraint>
        <role-name>manager</role-name>
      </auth-constraint>
    </security-constraint>
  
    <!-- ===================== Login Configuration ========================== -->
    <login-config>
      <auth-method>BASIC</auth-method>
      <realm-name>Catalina Remote Management Application</realm-name>
    </login-config>
  
  </web-app>