Tomcat8.5 Management page 403 Access denied workaround

Source: Internet
Author: User

After installing Tomcat, visit the server status, manager app, host manager, and other pages, and the 403 Access denied error appears.

Workaround:

1. In the conf/tomcat-users.xml file, add the following code in front of </tomcat-users> :

<role rolename= "Manager-gui"/>

<user username= "Tomcat" password= "admin888" roles= "Manager-gui"/>

Note: If you want to access host manager, you need to make some changes to the following:

<role rolename= "Manager-gui"/>

<user username= "Tomcat" password= "admin888" roles= "Manager-gui,admin-gui"/>


Then reboot Tomcat and revisit the Manager app page, if the 403 access denied error still appears,

Then the IP of the visit is restricted,

2. We open the context.xml file in the webapps/manager/meta-inf/directory, not the context.xml file in the conf/directory

We comment out or modify the contents of the

<valve classname= "Org.apache.catalina.valves.RemoteAddrValve"

allow= "192\.168\.234\.\d+|127\.\d+\.\d+\.\d+|::1|0:0:0:0:0:0:0:1"/>

Note: If you want to access the host manager, you also need to modify the Context.xml file in the webapps/host-manager/meta-inf/directory, as in the above.

Save, then restart Tomcat, revisit the server Status, Manager app page, and output the user name and password set above to access the page.

Tomcat8.5 Administration page 403 Access denied workaround

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.