13
13
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
14
See the License for the specific language governing permissions and
15
15
limitations under the License.
18
18
response.setHeader("WWW-Authenticate", "Basic realm=\"Tomcat Manager Application\"");
20
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
22
23
<title>401 Unauthorized</title>
24
<style type="text/css">
25
26
BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;font-size:12px;}
26
27
H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
35
36
You are not authorized to view this page. If you have not changed
36
37
any configuration files, please examine the file
37
38
<tt>conf/tomcat-users.xml</tt> in your installation. That
38
file will contain the credentials to let you use this webapp.
39
file must contain the credentials to let you use this webapp.
41
You will need to add <tt>manager</tt> role to the config file listed above.
42
For example, to add the <tt>manager-gui</tt> role to a user named
43
<tt>tomcat</tt> with a password of <tt>s3cret</tt>, add the following to the
44
config file listed above.
44
<role rolename="manager"/>
45
<user username="tomcat" password="s3cret" roles="manager"/>
47
<role rolename="manager-gui"/>
48
<user username="tomcat" password="s3cret" roles="manager-gui"/>
51
Note that for Tomcat 6.0.30 onwards, the roles required to use the manager
52
application were changed from the single <tt>manager</tt> role to the
53
following four roles. You will need to assign the role(s) required for
54
the functionality you wish to access.
57
<li><tt>manager-gui</tt> - allows access to the HTML GUI and the status
59
<li><tt>manager-script</tt> - allows access to the text interface and the
61
<li><tt>manager-jmx</tt> - allows access to the JMX proxy and the status
63
<li><tt>manager-status</tt> - allows access to the status pages only</li>
66
The HTML interface is protected against CSRF but the text and JMX interfaces
67
are not. To maintain the CSRF protection:
70
<li>The deprecated <tt>manager</tt> role should not be assigned to any
72
<li>Users with the <tt>manager-gui</tt> role should not be granted either
73
the <tt>manager-script</tt> or <tt>manager-jmx</tt> roles.</li>
74
<li>If the text or jmx interfaces are accessed through a browser (e.g. for
75
testing since these interfaces are intended for tools not humans) then
76
the browser must be closed afterwards to terminate the session.</li>
49
79
For more information - please see the
50
80
<a href="/docs/manager-howto.html">Manager App HOW-TO</a>.
b'\\ No newline at end of file'