blob: f6268140f8bc1ed2414af9af9e2f6b73e2212b33 [file] [log] [blame]
Hongqing Liufd5ee812014-05-10 16:32:51 +08001<%--
2 Licensed to the Apache Software Foundation (ASF) under one or more
3 contributor license agreements. See the NOTICE file distributed with
4 this work for additional information regarding copyright ownership.
5 The ASF licenses this file to You under the Apache License, Version 2.0
6 (the "License"); you may not use this file except in compliance with
7 the License. You may obtain a copy of the License at
8
9 http://www.apache.org/licenses/LICENSE-2.0
10
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
16--%>
刘洪青6266f992017-05-15 21:21:03 +080017<%@ page session="false" trimDirectiveWhitespaces="true" %>
Hongqing Liufd5ee812014-05-10 16:32:51 +080018<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
19<html>
20 <head>
21 <title>403 Access Denied</title>
22 <style type="text/css">
23 <!--
24 BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;font-size:12px;}
25 H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
26 PRE, TT {border: 1px dotted #525D76}
27 A {color : black;}A.name {color : black;}
28 -->
29 </style>
30 </head>
31 <body>
32 <h1>403 Access Denied</h1>
33 <p>
34 You are not authorized to view this page.
35 </p>
36 <p>
37 If you have already configured the Manager application to allow access and
刘洪青6266f992017-05-15 21:21:03 +080038 you have used your browsers back button, used a saved book-mark or similar
Hongqing Liufd5ee812014-05-10 16:32:51 +080039 then you may have triggered the cross-site request forgery (CSRF) protection
40 that has been enabled for the HTML interface of the Manager application. You
刘洪青6266f992017-05-15 21:21:03 +080041 will need to reset this protection by returning to the
Hongqing Liufd5ee812014-05-10 16:32:51 +080042 <a href="<%=request.getContextPath()%>/html">main Manager page</a>. Once you
43 return to this page, you will be able to continue using the Manager
刘洪青6266f992017-05-15 21:21:03 +080044 application's HTML interface normally. If you continue to see this access
Hongqing Liufd5ee812014-05-10 16:32:51 +080045 denied message, check that you have the necessary permissions to access this
46 application.
47 </p>
48 <p>
49 If you have not changed
50 any configuration files, please examine the file
51 <tt>conf/tomcat-users.xml</tt> in your installation. That
52 file must contain the credentials to let you use this webapp.
53 </p>
54 <p>
55 For example, to add the <tt>manager-gui</tt> role to a user named
56 <tt>tomcat</tt> with a password of <tt>s3cret</tt>, add the following to the
57 config file listed above.
58 </p>
59<pre>
60&lt;role rolename="manager-gui"/&gt;
61&lt;user username="tomcat" password="s3cret" roles="manager-gui"/&gt;
62</pre>
63 <p>
刘洪青6266f992017-05-15 21:21:03 +080064 Note that for Tomcat 7 onwards, the roles required to use the manager
65 application were changed from the single <tt>manager</tt> role to the
66 following four roles. You will need to assign the role(s) required for
67 the functionality you wish to access.
Hongqing Liufd5ee812014-05-10 16:32:51 +080068 </p>
69 <ul>
70 <li><tt>manager-gui</tt> - allows access to the HTML GUI and the status
71 pages</li>
72 <li><tt>manager-script</tt> - allows access to the text interface and the
73 status pages</li>
74 <li><tt>manager-jmx</tt> - allows access to the JMX proxy and the status
75 pages</li>
76 <li><tt>manager-status</tt> - allows access to the status pages only</li>
77 </ul>
78 <p>
79 The HTML interface is protected against CSRF but the text and JMX interfaces
80 are not. To maintain the CSRF protection:
81 </p>
82 <ul>
刘洪青6266f992017-05-15 21:21:03 +080083 <li>Users with the <tt>manager-gui</tt> role should not be granted either
Hongqing Liufd5ee812014-05-10 16:32:51 +080084 the <tt>manager-script</tt> or <tt>manager-jmx</tt> roles.</li>
刘洪青6266f992017-05-15 21:21:03 +080085 <li>If the text or jmx interfaces are accessed through a browser (e.g. for
86 testing since these interfaces are intended for tools not humans) then
87 the browser must be closed afterwards to terminate the session.</li>
Hongqing Liufd5ee812014-05-10 16:32:51 +080088 </ul>
89 <p>
90 For more information - please see the
91 <a href="/docs/manager-howto.html">Manager App HOW-TO</a>.
92 </p>
93 </body>
94
95</html>