Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 771 | blopes | 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_4_0.xsd" |
||
| 22 | version="4.0" |
||
| 23 | metadata-complete="true"> |
||
| 24 | |||
| 25 | <display-name>Tomcat Manager Application</display-name> |
||
| 26 | <description> |
||
| 27 | A scriptable management web application for the Tomcat Web Server; |
||
| 28 | Manager lets you view, load/unload/etc particular web applications. |
||
| 29 | </description> |
||
| 30 | |||
| 31 | <request-character-encoding>UTF-8</request-character-encoding> |
||
| 32 | |||
| 33 | <servlet> |
||
| 34 | <servlet-name>Manager</servlet-name> |
||
| 35 | <servlet-class>org.apache.catalina.manager.ManagerServlet</servlet-class> |
||
| 36 | <init-param> |
||
| 37 | <param-name>debug</param-name> |
||
| 38 | <param-value>2</param-value> |
||
| 39 | </init-param> |
||
| 40 | </servlet> |
||
| 41 | <servlet> |
||
| 42 | <servlet-name>HTMLManager</servlet-name> |
||
| 43 | <servlet-class>org.apache.catalina.manager.HTMLManagerServlet</servlet-class> |
||
| 44 | <init-param> |
||
| 45 | <param-name>debug</param-name> |
||
| 46 | <param-value>2</param-value> |
||
| 47 | </init-param> |
||
| 48 | <!-- Uncomment this to show proxy sessions from the Backup manager or a |
||
| 49 | StoreManager in the sessions list for an application |
||
| 50 | <init-param> |
||
| 51 | <param-name>showProxySessions</param-name> |
||
| 52 | <param-value>true</param-value> |
||
| 53 | </init-param> |
||
| 54 | --> |
||
| 55 | <!-- Uncomment this to set a sub-title for the manager web application main |
||
| 56 | page. It must be XML escaped, valid HTML. |
||
| 57 | <init-param> |
||
| 58 | <param-name>htmlSubTitle</param-name> |
||
| 59 | <param-value>Sub-Title</param-value> |
||
| 60 | </init-param> |
||
| 61 | --> |
||
| 62 | <multipart-config> |
||
| 63 | <!-- 50 MiB max --> |
||
| 64 | <max-file-size>52428800</max-file-size> |
||
| 65 | <max-request-size>52428800</max-request-size> |
||
| 66 | <file-size-threshold>0</file-size-threshold> |
||
| 67 | </multipart-config> |
||
| 68 | </servlet> |
||
| 69 | <servlet> |
||
| 70 | <servlet-name>Status</servlet-name> |
||
| 71 | <servlet-class>org.apache.catalina.manager.StatusManagerServlet</servlet-class> |
||
| 72 | <init-param> |
||
| 73 | <param-name>debug</param-name> |
||
| 74 | <param-value>0</param-value> |
||
| 75 | </init-param> |
||
| 76 | </servlet> |
||
| 77 | |||
| 78 | <servlet> |
||
| 79 | <servlet-name>JMXProxy</servlet-name> |
||
| 80 | <servlet-class>org.apache.catalina.manager.JMXProxyServlet</servlet-class> |
||
| 81 | </servlet> |
||
| 82 | |||
| 83 | <!-- Define the Manager Servlet Mapping --> |
||
| 84 | <servlet-mapping> |
||
| 85 | <servlet-name>Manager</servlet-name> |
||
| 86 | <url-pattern>/text/*</url-pattern> |
||
| 87 | </servlet-mapping> |
||
| 88 | <servlet-mapping> |
||
| 89 | <servlet-name>Status</servlet-name> |
||
| 90 | <url-pattern>/status/*</url-pattern> |
||
| 91 | </servlet-mapping> |
||
| 92 | <servlet-mapping> |
||
| 93 | <servlet-name>JMXProxy</servlet-name> |
||
| 94 | <url-pattern>/jmxproxy/*</url-pattern> |
||
| 95 | </servlet-mapping> |
||
| 96 | <servlet-mapping> |
||
| 97 | <servlet-name>HTMLManager</servlet-name> |
||
| 98 | <url-pattern>/html/*</url-pattern> |
||
| 99 | </servlet-mapping> |
||
| 100 | |||
| 101 | <filter> |
||
| 102 | <filter-name>CSRF</filter-name> |
||
| 103 | <filter-class>org.apache.catalina.filters.CsrfPreventionFilter</filter-class> |
||
| 104 | <init-param> |
||
| 105 | <param-name>entryPoints</param-name> |
||
| 106 | <param-value>/html,/html/,/html/list,/index.jsp</param-value> |
||
| 107 | </init-param> |
||
| 108 | </filter> |
||
| 109 | |||
| 110 | <!-- Configured to set X-FRAME-OPTIONS. Disable HSTS in case it interferes --> |
||
| 111 | <!-- with an existing setting. Keep X-Content-Type-Options and --> |
||
| 112 | <!-- X-XSS-Protection as they are page specific. --> |
||
| 113 | <filter> |
||
| 114 | <filter-name>HTTP header security filter</filter-name> |
||
| 115 | <filter-class>org.apache.catalina.filters.HttpHeaderSecurityFilter</filter-class> |
||
| 116 | <init-param> |
||
| 117 | <param-name>hstsEnabled</param-name> |
||
| 118 | <param-value>false</param-value> |
||
| 119 | </init-param> |
||
| 120 | </filter> |
||
| 121 | |||
| 122 | <filter-mapping> |
||
| 123 | <filter-name>CSRF</filter-name> |
||
| 124 | <servlet-name>HTMLManager</servlet-name> |
||
| 125 | </filter-mapping> |
||
| 126 | |||
| 127 | <filter-mapping> |
||
| 128 | <filter-name>HTTP header security filter</filter-name> |
||
| 129 | <url-pattern>/*</url-pattern> |
||
| 130 | </filter-mapping> |
||
| 131 | |||
| 132 | <!-- Define a Security Constraint on this Application --> |
||
| 133 | <!-- NOTE: None of these roles are present in the default users file --> |
||
| 134 | <security-constraint> |
||
| 135 | <web-resource-collection> |
||
| 136 | <web-resource-name>HTML Manager interface (for humans)</web-resource-name> |
||
| 137 | <url-pattern>/html/*</url-pattern> |
||
| 138 | </web-resource-collection> |
||
| 139 | <auth-constraint> |
||
| 140 | <role-name>manager-gui</role-name> |
||
| 141 | </auth-constraint> |
||
| 142 | </security-constraint> |
||
| 143 | <security-constraint> |
||
| 144 | <web-resource-collection> |
||
| 145 | <web-resource-name>Text Manager interface (for scripts)</web-resource-name> |
||
| 146 | <url-pattern>/text/*</url-pattern> |
||
| 147 | </web-resource-collection> |
||
| 148 | <auth-constraint> |
||
| 149 | <role-name>manager-script</role-name> |
||
| 150 | </auth-constraint> |
||
| 151 | </security-constraint> |
||
| 152 | <security-constraint> |
||
| 153 | <web-resource-collection> |
||
| 154 | <web-resource-name>JMX Proxy interface</web-resource-name> |
||
| 155 | <url-pattern>/jmxproxy/*</url-pattern> |
||
| 156 | </web-resource-collection> |
||
| 157 | <auth-constraint> |
||
| 158 | <role-name>manager-jmx</role-name> |
||
| 159 | </auth-constraint> |
||
| 160 | </security-constraint> |
||
| 161 | <security-constraint> |
||
| 162 | <web-resource-collection> |
||
| 163 | <web-resource-name>Status interface</web-resource-name> |
||
| 164 | <url-pattern>/status/*</url-pattern> |
||
| 165 | </web-resource-collection> |
||
| 166 | <auth-constraint> |
||
| 167 | <role-name>manager-gui</role-name> |
||
| 168 | <role-name>manager-script</role-name> |
||
| 169 | <role-name>manager-jmx</role-name> |
||
| 170 | <role-name>manager-status</role-name> |
||
| 171 | </auth-constraint> |
||
| 172 | </security-constraint> |
||
| 173 | |||
| 174 | <!-- Define the Login Configuration for this Application --> |
||
| 175 | <login-config> |
||
| 176 | <auth-method>BASIC</auth-method> |
||
| 177 | <realm-name>Tomcat Manager Application</realm-name> |
||
| 178 | </login-config> |
||
| 179 | |||
| 180 | <!-- Security roles referenced by this web application --> |
||
| 181 | <security-role> |
||
| 182 | <description> |
||
| 183 | The role that is required to access the HTML Manager pages |
||
| 184 | </description> |
||
| 185 | <role-name>manager-gui</role-name> |
||
| 186 | </security-role> |
||
| 187 | <security-role> |
||
| 188 | <description> |
||
| 189 | The role that is required to access the text Manager pages |
||
| 190 | </description> |
||
| 191 | <role-name>manager-script</role-name> |
||
| 192 | </security-role> |
||
| 193 | <security-role> |
||
| 194 | <description> |
||
| 195 | The role that is required to access the HTML JMX Proxy |
||
| 196 | </description> |
||
| 197 | <role-name>manager-jmx</role-name> |
||
| 198 | </security-role> |
||
| 199 | <security-role> |
||
| 200 | <description> |
||
| 201 | The role that is required to access to the Manager Status pages |
||
| 202 | </description> |
||
| 203 | <role-name>manager-status</role-name> |
||
| 204 | </security-role> |
||
| 205 | |||
| 206 | <error-page> |
||
| 207 | <error-code>401</error-code> |
||
| 208 | <location>/WEB-INF/jsp/401.jsp</location> |
||
| 209 | </error-page> |
||
| 210 | <error-page> |
||
| 211 | <error-code>403</error-code> |
||
| 212 | <location>/WEB-INF/jsp/403.jsp</location> |
||
| 213 | </error-page> |
||
| 214 | <error-page> |
||
| 215 | <error-code>404</error-code> |
||
| 216 | <location>/WEB-INF/jsp/404.jsp</location> |
||
| 217 | </error-page> |
||
| 218 | |||
| 219 | </web-app> |