How to troubleshoot the Tomcat Administration page 403 Access denied

Source: Internet
Author: User

After installing tomcat and configuring the Tomcat environment variable, visit the Manager app page with the 403 Access denied error, and the workaround is as follows:

First, in the Conf/tomcat-users.xml file, add the following code in the </tomcat-users> front:

[HTML]View PlainCopy
    1. <role rolename="Manager-gui"/>
    2. <user password="admin" roles="Manager-gui" username="Tomcat"/>

Then reboot Tomcat and revisit the Manager app page, if the 403 access denied error still occurs, then the IP access is restricted.

We open the/webapps/manager/meta-inf/directory under the context.xml file, not the conf/directory Context.xml file, must not be mistaken

We will comment out or fix the contents

[HTML]View PlainCopy
    1. <Valve classname="Org.apache.catalina.valves.RemoteAddrValve"
    2. allow="127\.\d+\.\d+\.\d+|::1|0:0:0:0:0:0:0:1|\d+\.\d+\.\d+\.\d+" />

Save, then restart Tomcat, re-access the Manager app page, OK, the problem is resolved.

How to troubleshoot the Tomcat Administration page 403 Access denied

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.