| Hongqing Liu | fd5ee81 | 2014-05-10 16:32:51 +0800 | [diff] [blame] | 1 | <%--
 | 
 | 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 | --%>
 | 
| 刘洪青 | 6266f99 | 2017-05-15 21:21:03 +0800 | [diff] [blame^] | 17 | <%@ page session="false" trimDirectiveWhitespaces="true" %>
 | 
| Hongqing Liu | fd5ee81 | 2014-05-10 16:32:51 +0800 | [diff] [blame] | 18 | <!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 Host Manager application to allow access
 | 
| 刘洪青 | 6266f99 | 2017-05-15 21:21:03 +0800 | [diff] [blame^] | 38 |     and you have used your browsers back button, used a saved book-mark or
 | 
| Hongqing Liu | fd5ee81 | 2014-05-10 16:32:51 +0800 | [diff] [blame] | 39 |     similar then you may have triggered the cross-site request forgery (CSRF)
 | 
 | 40 |     protection that has been enabled for the HTML interface of the Host Manager
 | 
| 刘洪青 | 6266f99 | 2017-05-15 21:21:03 +0800 | [diff] [blame^] | 41 |     application. You will need to reset this protection by returning to the
 | 
| Hongqing Liu | fd5ee81 | 2014-05-10 16:32:51 +0800 | [diff] [blame] | 42 |     <a href="<%=request.getContextPath()%>/html">main Host Manager page</a>.
 | 
 | 43 |     Once you return to this page, you will be able to continue using the Host
 | 
| 刘洪青 | 6266f99 | 2017-05-15 21:21:03 +0800 | [diff] [blame^] | 44 |     Manager application's HTML interface normally. If you continue to see this
 | 
| Hongqing Liu | fd5ee81 | 2014-05-10 16:32:51 +0800 | [diff] [blame] | 45 |     access denied message, check that you have the necessary permissions to
 | 
 | 46 |     access this application.
 | 
 | 47 |    </p>
 | 
 | 48 |    <p> If you have not changed
 | 
 | 49 |     any configuration files, please examine the file
 | 
 | 50 |     <tt>conf/tomcat-users.xml</tt> in your installation. That
 | 
 | 51 |     file must contain the credentials to let you use this webapp.
 | 
 | 52 |    </p>
 | 
 | 53 |    <p>
 | 
 | 54 |     For example, to add the <tt>admin-gui</tt> role to a user named
 | 
 | 55 |     <tt>tomcat</tt> with a password of <tt>s3cret</tt>, add the following to the
 | 
 | 56 |     config file listed above.
 | 
 | 57 |    </p>
 | 
 | 58 | <pre>
 | 
 | 59 | <role rolename="admin-gui"/>
 | 
 | 60 | <user username="tomcat" password="s3cret" roles="admin-gui"/>
 | 
 | 61 | </pre>
 | 
 | 62 |    <p>
 | 
| 刘洪青 | 6266f99 | 2017-05-15 21:21:03 +0800 | [diff] [blame^] | 63 |     Note that for Tomcat 7 onwards, the roles required to use the host manager
 | 
 | 64 |     application were changed from the single <tt>admin</tt> role to the
 | 
| Hongqing Liu | fd5ee81 | 2014-05-10 16:32:51 +0800 | [diff] [blame] | 65 |     following two roles. You will need to assign the role(s) required for
 | 
| 刘洪青 | 6266f99 | 2017-05-15 21:21:03 +0800 | [diff] [blame^] | 66 |     the functionality you wish to access.
 | 
| Hongqing Liu | fd5ee81 | 2014-05-10 16:32:51 +0800 | [diff] [blame] | 67 |    </p>
 | 
 | 68 |     <ul>
 | 
 | 69 |       <li><tt>admin-gui</tt> - allows access to the HTML GUI</li>
 | 
 | 70 |       <li><tt>admin-script</tt> - allows access to the text interface</li>
 | 
 | 71 |     </ul>
 | 
 | 72 |    <p>
 | 
 | 73 |     The HTML interface is protected against CSRF but the text interface is not.
 | 
 | 74 |     To maintain the CSRF protection:
 | 
 | 75 |    </p>
 | 
 | 76 |    <ul>
 | 
| Hongqing Liu | fd5ee81 | 2014-05-10 16:32:51 +0800 | [diff] [blame] | 77 |     <li>Users with the <tt>admin-gui</tt> role should not be granted the
 | 
 | 78 |        <tt>admin-script</tt> role.</li>
 | 
 | 79 |     <li>If the text interface is accessed through a browser (e.g. for testing
 | 
 | 80 |         since this interface is intended for tools not humans) then the browser
 | 
 | 81 |         must be closed afterwards to terminate the session.</li>
 | 
 | 82 |    </ul>
 | 
 | 83 |  </body>
 | 
 | 84 | 
 | 
 | 85 | </html>
 |