Tomcat Manager Configuration

Source: Internet
Author: User
401 unauthorized

401 unauthorized

You are not authorized to view this page. If you have not changed any configuration files, please examine the fileConf/tomcat-users.xmlIn your installation. That file must contain the credentials to let you use this webapp.

For example, to addManager-GuiRole to a user namedTomcatWith a passwordS3cret, Add the following to the config file listed abve.

 
<Role rolename = "Manager-Gui"/> <User Username = "Tomcat" Password = "s3cret" roles = "Manager-Gui"/>

Note that for Tomcat 6.0.30 onwards, the roles required to use the Manager application were changed from the singleManagerRole to the following four roles. You will need to assign the role (s) required for the functionality you wish to access.

    • Manager-Gui-Allows access to the html gui and the status pages
    • Manager-script-Allows access to the text interface and the status pages
    • Manager-JMX-Allows access to the JMX proxy and the status pages
    • Manager-status-Allows access to the status pages only

The HTML interface is protected against csrf but the text and JMX interfaces are not. To maintain the csrf protection:

    • The deprecatedManagerRole shoshould not be assigned to any user.
    • Users withManager-GuiRole shoshould not be granted either
      Manager-scriptOrManager-JMXRoles.
    • If the text or JMX interfaces are accessed through a browser (e.g. For testing since these interfaces are intended for tools not humans) then the browser must be closed afterwards to terminate the session.

For more information-please see
Manager app how-.

Find the Directory D: \ app \ javaee \ apache-tomcat-7.0.22-windows-x64 \ conf

Modify: tomcat-users.xml

<Role rolename = "Manager-Gui"/> <br/> <role rolename = "Manager-script"/> <br/> <role rolename = "Manager-JMX "/> <br/> <role rolename = "Manager-status"/> <br/> <User Username = "admin" Password = "111111" roles = "Manager-Gui "/> <br/> <User Username = "Tomcat" Password = "111111" roles = "Manager-script, manager-JMX, Manager-status "/>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.