source: nutchez-0.1/tomcat/webapps/manager/WEB-INF/web.xml @ 77

Last change on this file since 77 was 66, checked in by waue, 16 years ago

NutchEz - an easy way to nutch

File size: 6.8 KB
RevLine 
[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>Manager</servlet-name>
38    <servlet-class>org.apache.catalina.manager.ManagerServlet</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>HTMLManager</servlet-name>
46    <servlet-class>org.apache.catalina.manager.HTMLManagerServlet</servlet-class>
47    <init-param>
48      <param-name>debug</param-name>
49      <param-value>2</param-value>
50    </init-param>
51  </servlet>
52  <servlet>
53    <servlet-name>Status</servlet-name>
54    <servlet-class>org.apache.catalina.manager.StatusManagerServlet</servlet-class>
55    <init-param>
56      <param-name>debug</param-name>
57      <param-value>0</param-value>
58    </init-param>
59  </servlet>
60
61  <servlet>
62    <servlet-name>JMXProxy</servlet-name>
63    <servlet-class>org.apache.catalina.manager.JMXProxyServlet</servlet-class>
64  </servlet>
65
66  <!-- Define the Manager Servlet Mapping -->
67  <servlet-mapping>
68    <servlet-name>Manager</servlet-name>
69      <url-pattern>/list</url-pattern>
70  </servlet-mapping>
71  <servlet-mapping>
72    <servlet-name>Manager</servlet-name>
73      <url-pattern>/expire</url-pattern>
74  </servlet-mapping>
75  <servlet-mapping>
76    <servlet-name>Manager</servlet-name>
77      <url-pattern>/sessions</url-pattern>
78  </servlet-mapping>
79  <servlet-mapping>
80    <servlet-name>Manager</servlet-name>
81      <url-pattern>/start</url-pattern>
82  </servlet-mapping>
83  <servlet-mapping>
84    <servlet-name>Manager</servlet-name>
85      <url-pattern>/stop</url-pattern>
86  </servlet-mapping>
87  <servlet-mapping>
88    <servlet-name>Manager</servlet-name>
89      <url-pattern>/install</url-pattern>
90  </servlet-mapping>
91  <servlet-mapping>
92    <servlet-name>Manager</servlet-name>
93      <url-pattern>/remove</url-pattern>
94  </servlet-mapping>
95  <servlet-mapping>
96    <servlet-name>Manager</servlet-name>
97      <url-pattern>/deploy</url-pattern>
98  </servlet-mapping>
99  <servlet-mapping>
100    <servlet-name>Manager</servlet-name>
101      <url-pattern>/undeploy</url-pattern>
102  </servlet-mapping>
103  <servlet-mapping>
104    <servlet-name>Manager</servlet-name>
105      <url-pattern>/reload</url-pattern>
106  </servlet-mapping>
107  <servlet-mapping>
108    <servlet-name>Manager</servlet-name>
109      <url-pattern>/save</url-pattern>
110  </servlet-mapping>
111  <servlet-mapping>
112    <servlet-name>Manager</servlet-name>
113      <url-pattern>/serverinfo</url-pattern>
114  </servlet-mapping>
115  <servlet-mapping>
116    <servlet-name>Manager</servlet-name>
117      <url-pattern>/roles</url-pattern>
118  </servlet-mapping>
119  <servlet-mapping>
120    <servlet-name>Manager</servlet-name>
121      <url-pattern>/resources</url-pattern>
122  </servlet-mapping>
123  <servlet-mapping>
124    <servlet-name>Status</servlet-name>
125    <url-pattern>/status/*</url-pattern>
126  </servlet-mapping>
127  <servlet-mapping>
128    <servlet-name>JMXProxy</servlet-name>
129      <url-pattern>/jmxproxy/*</url-pattern>
130  </servlet-mapping>
131  <servlet-mapping>
132    <servlet-name>HTMLManager</servlet-name>
133    <url-pattern>/html/*</url-pattern>
134  </servlet-mapping>
135
136  <!-- Define reference to the user database for looking up roles -->
137  <resource-env-ref>
138    <description>
139      Link to the UserDatabase instance from which we request lists of
140      defined role names.  Typically, this will be connected to the global
141      user database with a ResourceLink element in server.xml or the context
142      configuration file for the Manager web application.
143    </description>
144    <resource-env-ref-name>users</resource-env-ref-name>
145    <resource-env-ref-type>
146      org.apache.catalina.UserDatabase
147    </resource-env-ref-type>
148  </resource-env-ref>
149
150  <!-- Define a Security Constraint on this Application -->
151  <security-constraint>
152    <web-resource-collection>
153      <web-resource-name>HTMLManger and Manager command</web-resource-name>
154      <url-pattern>/jmxproxy/*</url-pattern>
155      <url-pattern>/html/*</url-pattern>
156      <url-pattern>/list</url-pattern>
157      <url-pattern>/expire</url-pattern>
158      <url-pattern>/sessions</url-pattern>
159      <url-pattern>/start</url-pattern>
160      <url-pattern>/stop</url-pattern>
161      <url-pattern>/install</url-pattern>
162      <url-pattern>/remove</url-pattern>
163      <url-pattern>/deploy</url-pattern>
164      <url-pattern>/undeploy</url-pattern>
165      <url-pattern>/reload</url-pattern>
166      <url-pattern>/save</url-pattern>
167      <url-pattern>/serverinfo</url-pattern>
168      <url-pattern>/status/*</url-pattern>
169      <url-pattern>/roles</url-pattern>
170      <url-pattern>/resources</url-pattern>
171    </web-resource-collection>
172    <auth-constraint>
173       <!-- NOTE:  This role is not present in the default users file -->
174       <role-name>manager</role-name>
175    </auth-constraint>
176  </security-constraint>
177
178  <!-- Define the Login Configuration for this Application -->
179  <login-config>
180    <auth-method>BASIC</auth-method>
181    <realm-name>Tomcat Manager Application</realm-name>
182  </login-config>
183
184  <!-- Security roles referenced by this web application -->
185  <security-role>
186    <description>
187      The role that is required to log in to the Manager Application
188    </description>
189    <role-name>manager</role-name>
190  </security-role>
191
192  <error-page>
193    <error-code>401</error-code>
194    <location>/401.jsp</location>
195  </error-page>
196
197</web-app>
Note: See TracBrowser for help on using the repository browser.