"Fossies" - the Fresh Open Source Software Archive

Member "apache-tomcat-8.5.58/webapps/host-manager/WEB-INF/web.xml" (10 Sep 2020, 4978 Bytes) of package /windows/www/apache-tomcat-8.5.58-windows-x64.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) XML source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 <?xml version="1.0" encoding="UTF-8"?>
    2 <!--
    3   Licensed to the Apache Software Foundation (ASF) under one or more
    4   contributor license agreements.  See the NOTICE file distributed with
    5   this work for additional information regarding copyright ownership.
    6   The ASF licenses this file to You under the Apache License, Version 2.0
    7   (the "License"); you may not use this file except in compliance with
    8   the License.  You may obtain a copy of the License at
    9 
   10       http://www.apache.org/licenses/LICENSE-2.0
   11 
   12   Unless required by applicable law or agreed to in writing, software
   13   distributed under the License is distributed on an "AS IS" BASIS,
   14   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   15   See the License for the specific language governing permissions and
   16   limitations under the License.
   17 -->
   18 <web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
   19   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   20   xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
   21                       http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
   22   version="3.1"
   23   metadata-complete="true">
   24 
   25   <display-name>Tomcat Host Manager Application</display-name>
   26   <description>
   27     A scriptable host management web application for the Tomcat Web Server;
   28     Manager lets you view, create and remove virtual hosts.
   29   </description>
   30 
   31   <servlet>
   32     <servlet-name>HostManager</servlet-name>
   33     <servlet-class>org.apache.catalina.manager.host.HostManagerServlet</servlet-class>
   34     <init-param>
   35       <param-name>debug</param-name>
   36       <param-value>2</param-value>
   37     </init-param>
   38   </servlet>
   39   <servlet>
   40     <servlet-name>HTMLHostManager</servlet-name>
   41     <servlet-class>org.apache.catalina.manager.host.HTMLHostManagerServlet</servlet-class>
   42     <init-param>
   43       <param-name>debug</param-name>
   44       <param-value>2</param-value>
   45     </init-param>
   46   </servlet>
   47 
   48   <filter>
   49     <filter-name>SetCharacterEncoding</filter-name>
   50     <filter-class>org.apache.catalina.filters.SetCharacterEncodingFilter</filter-class>
   51     <init-param>
   52       <param-name>encoding</param-name>
   53       <param-value>UTF-8</param-value>
   54     </init-param>
   55   </filter>
   56 
   57   <filter-mapping>
   58     <filter-name>SetCharacterEncoding</filter-name>
   59     <url-pattern>/*</url-pattern>
   60   </filter-mapping>
   61 
   62   <filter>
   63     <filter-name>CSRF</filter-name>
   64     <filter-class>org.apache.catalina.filters.CsrfPreventionFilter</filter-class>
   65     <init-param>
   66       <param-name>entryPoints</param-name>
   67       <param-value>/html,/html/,/html/list,/index.jsp</param-value>
   68     </init-param>
   69   </filter>
   70 
   71   <filter-mapping>
   72     <filter-name>CSRF</filter-name>
   73     <servlet-name>HTMLHostManager</servlet-name>
   74   </filter-mapping>
   75 
   76   <!-- Define the Manager Servlet Mapping -->
   77   <servlet-mapping>
   78     <servlet-name>HostManager</servlet-name>
   79     <url-pattern>/text/*</url-pattern>
   80   </servlet-mapping>
   81   <servlet-mapping>
   82     <servlet-name>HTMLHostManager</servlet-name>
   83     <url-pattern>/html/*</url-pattern>
   84   </servlet-mapping>
   85 
   86   <!-- Define a Security Constraint on this Application -->
   87   <security-constraint>
   88     <web-resource-collection>
   89       <web-resource-name>HostManager commands</web-resource-name>
   90       <url-pattern>/text/*</url-pattern>
   91     </web-resource-collection>
   92     <auth-constraint>
   93        <!-- NOTE:  This role is not present in the default users file -->
   94        <role-name>admin-script</role-name>
   95     </auth-constraint>
   96   </security-constraint>
   97   <security-constraint>
   98     <web-resource-collection>
   99       <web-resource-name>HTMLHostManager commands</web-resource-name>
  100       <url-pattern>/html/*</url-pattern>
  101     </web-resource-collection>
  102     <auth-constraint>
  103        <!-- NOTE:  This role is not present in the default users file -->
  104        <role-name>admin-gui</role-name>
  105     </auth-constraint>
  106   </security-constraint>
  107 
  108   <!-- Define the Login Configuration for this Application -->
  109   <login-config>
  110     <auth-method>BASIC</auth-method>
  111     <realm-name>Tomcat Host Manager Application</realm-name>
  112   </login-config>
  113 
  114   <!-- Security roles referenced by this web application -->
  115   <security-role>
  116     <description>
  117       The role that is required to log in to the Host Manager Application HTML
  118       interface
  119     </description>
  120     <role-name>admin-gui</role-name>
  121   </security-role>
  122   <security-role>
  123     <description>
  124       The role that is required to log in to the Host Manager Application text
  125       interface
  126     </description>
  127     <role-name>admin-script</role-name>
  128   </security-role>
  129 
  130   <error-page>
  131     <error-code>401</error-code>
  132     <location>/WEB-INF/jsp/401.jsp</location>
  133   </error-page>
  134   <error-page>
  135     <error-code>403</error-code>
  136     <location>/WEB-INF/jsp/403.jsp</location>
  137   </error-page>
  138   <error-page>
  139     <error-code>404</error-code>
  140     <location>/WEB-INF/jsp/404.jsp</location>
  141   </error-page>
  142 
  143 </web-app>