"Fossies" - the Fresh Open Source Software Archive

Member "apache-tomcat-8.5.58/webapps/manager/WEB-INF/jsp/401.jsp" (10 Sep 2020, 3428 Bytes) of package /windows/www/apache-tomcat-8.5.58-windows-x86.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) JavaServer Pages source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    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 --%>
   17 <%@ page session="false" trimDirectiveWhitespaces="true" %>
   18 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
   19 <html>
   20  <head>
   21   <title>401 Unauthorized</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>401 Unauthorized</h1>
   33    <p>
   34     You are not authorized to view this page. If you have not changed
   35     any configuration files, please examine the file
   36     <tt>conf/tomcat-users.xml</tt> in your installation. That
   37     file must contain the credentials to let you use this webapp.
   38    </p>
   39    <p>
   40     For example, to add the <tt>manager-gui</tt> role to a user named
   41     <tt>tomcat</tt> with a password of <tt>s3cret</tt>, add the following to the
   42     config file listed above.
   43    </p>
   44 <pre>
   45 &lt;role rolename="manager-gui"/&gt;
   46 &lt;user username="tomcat" password="s3cret" roles="manager-gui"/&gt;
   47 </pre>
   48    <p>
   49     Note that for Tomcat 7 onwards, the roles required to use the manager
   50     application were changed from the single <tt>manager</tt> role to the
   51     following four roles. You will need to assign the role(s) required for
   52     the functionality you wish to access.
   53    </p>
   54     <ul>
   55       <li><tt>manager-gui</tt> - allows access to the HTML GUI and the status
   56           pages</li>
   57       <li><tt>manager-script</tt> - allows access to the text interface and the
   58           status pages</li>
   59       <li><tt>manager-jmx</tt> - allows access to the JMX proxy and the status
   60           pages</li>
   61       <li><tt>manager-status</tt> - allows access to the status pages only</li>
   62     </ul>
   63    <p>
   64     The HTML interface is protected against CSRF but the text and JMX interfaces
   65     are not. To maintain the CSRF protection:
   66    </p>
   67    <ul>
   68     <li>Users with the <tt>manager-gui</tt> role should not be granted either
   69         the <tt>manager-script</tt> or <tt>manager-jmx</tt> roles.</li>
   70     <li>If the text or jmx interfaces are accessed through a browser (e.g. for
   71         testing since these interfaces are intended for tools not humans) then
   72         the browser must be closed afterwards to terminate the session.</li>
   73    </ul>
   74    <p>
   75     For more information - please see the
   76     <a href="/docs/manager-howto.html" rel="noopener noreferrer">Manager App How-To</a>.
   77    </p>
   78  </body>
   79 
   80 </html>