[66] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?> |
---|
| 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 | |
---|
| 19 | <web-app xmlns="http://java.sun.com/xml/ns/javaee" |
---|
| 20 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
---|
| 21 | xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" |
---|
| 22 | version="2.5"> |
---|
| 23 | |
---|
| 24 | <display-name>Tomcat Manager Application</display-name> |
---|
| 25 | <description> |
---|
| 26 | A scriptable management web application for the Tomcat Web Server; |
---|
| 27 | Manager lets you view, load/unload/etc particular web applications. |
---|
| 28 | </description> |
---|
| 29 | |
---|
| 30 | <!-- Define the Manager Servlet |
---|
| 31 | Change servlet-class to: org.apache.catalina.servlets.HTMLManagerServlet |
---|
| 32 | to get a Servlet with a more intuitive HTML interface, don't change if you |
---|
| 33 | have software that is expected to parse the output from ManagerServlet |
---|
| 34 | since they're not compatible. |
---|
| 35 | --> |
---|
| 36 | <servlet> |
---|
| 37 | <servlet-name>HostManager</servlet-name> |
---|
| 38 | <servlet-class>org.apache.catalina.manager.host.HostManagerServlet</servlet-class> |
---|
| 39 | <init-param> |
---|
| 40 | <param-name>debug</param-name> |
---|
| 41 | <param-value>2</param-value> |
---|
| 42 | </init-param> |
---|
| 43 | </servlet> |
---|
| 44 | <servlet> |
---|
| 45 | <servlet-name>HTMLHostManager</servlet-name> |
---|
| 46 | <servlet-class>org.apache.catalina.manager.host.HTMLHostManagerServlet</servlet-class> |
---|
| 47 | <init-param> |
---|
| 48 | <param-name>debug</param-name> |
---|
| 49 | <param-value>2</param-value> |
---|
| 50 | </init-param> |
---|
| 51 | </servlet> |
---|
| 52 | |
---|
| 53 | <!-- Define the Manager Servlet Mapping --> |
---|
| 54 | <servlet-mapping> |
---|
| 55 | <servlet-name>HostManager</servlet-name> |
---|
| 56 | <url-pattern>/list</url-pattern> |
---|
| 57 | </servlet-mapping> |
---|
| 58 | <servlet-mapping> |
---|
| 59 | <servlet-name>HostManager</servlet-name> |
---|
| 60 | <url-pattern>/add</url-pattern> |
---|
| 61 | </servlet-mapping> |
---|
| 62 | <servlet-mapping> |
---|
| 63 | <servlet-name>HostManager</servlet-name> |
---|
| 64 | <url-pattern>/remove</url-pattern> |
---|
| 65 | </servlet-mapping> |
---|
| 66 | <servlet-mapping> |
---|
| 67 | <servlet-name>HostManager</servlet-name> |
---|
| 68 | <url-pattern>/start</url-pattern> |
---|
| 69 | </servlet-mapping> |
---|
| 70 | <servlet-mapping> |
---|
| 71 | <servlet-name>HostManager</servlet-name> |
---|
| 72 | <url-pattern>/stop</url-pattern> |
---|
| 73 | </servlet-mapping> |
---|
| 74 | <servlet-mapping> |
---|
| 75 | <servlet-name>HTMLHostManager</servlet-name> |
---|
| 76 | <url-pattern>/html/*</url-pattern> |
---|
| 77 | </servlet-mapping> |
---|
| 78 | |
---|
| 79 | <!-- Define a Security Constraint on this Application --> |
---|
| 80 | <security-constraint> |
---|
| 81 | <web-resource-collection> |
---|
| 82 | <web-resource-name>HTMLHostManager and HostManager commands</web-resource-name> |
---|
| 83 | <url-pattern>/html/*</url-pattern> |
---|
| 84 | <url-pattern>/list</url-pattern> |
---|
| 85 | <url-pattern>/add</url-pattern> |
---|
| 86 | <url-pattern>/remove</url-pattern> |
---|
| 87 | <url-pattern>/start</url-pattern> |
---|
| 88 | <url-pattern>/stop</url-pattern> |
---|
| 89 | </web-resource-collection> |
---|
| 90 | <auth-constraint> |
---|
| 91 | <!-- NOTE: This role is not present in the default users file --> |
---|
| 92 | <role-name>admin</role-name> |
---|
| 93 | </auth-constraint> |
---|
| 94 | </security-constraint> |
---|
| 95 | |
---|
| 96 | <!-- Define the Login Configuration for this Application --> |
---|
| 97 | <login-config> |
---|
| 98 | <auth-method>BASIC</auth-method> |
---|
| 99 | <realm-name>Tomcat Host Manager Application</realm-name> |
---|
| 100 | </login-config> |
---|
| 101 | |
---|
| 102 | <!-- Security roles referenced by this web application --> |
---|
| 103 | <security-role> |
---|
| 104 | <description> |
---|
| 105 | The role that is required to log in to the Manager Application |
---|
| 106 | </description> |
---|
| 107 | <role-name>admin</role-name> |
---|
| 108 | </security-role> |
---|
| 109 | |
---|
| 110 | </web-app> |
---|