Tomcat8 localhost + port can access the Manager APP, but IP + port cannot be accessed. tomcat8localhost

Source: Internet
Author: User

Tomcat8 localhost + port can access the Manager APP, but IP + port cannot be accessed. tomcat8localhost

The localhost + port can access the Manager APP normally, but the IP address + port cannot access the Manager APP. The error 403 is returned. (My host environment is Ubuntu16.04)

The premise is that you have configured tomcat_user.xml, server. xml, context. xml

The premise is that you have configured tomcat_user.xml, server. xml, context. xml

The premise is that you have configured tomcat_user.xml, server. xml, context. xml

(Three important things !!!)

I don't know how to modify it. Please Baidu

 

 

 

Configure the Remote Access manager

Add manager. xml under tomat_home/conf/Catalina/localhost/

<Context privileged="true" antiResourceLocking="false"            docBase="${catalina.home}/webapps/manager">               <Valve className="org.apache.catalina.valves.RemoteAddrValve" allow="^.*$" />  </Context>

The attribute allow is an ip address restriction. You can change it to allow = "127.0.0.1, 192.168.1 .*"

This means that only the IP address of the Local Machine and 192.168.1. * can be accessed.

In addition !!!

Host-manager/META-INF/context. xml is accessible only locally by default. You must modify the allow attribute value to access other addresses.

  allow = "127.0.0.1,192.168.1.*"   allow = "127.0.0.1,192.168.1.*"   allow = "127.0.0.1,192.168.1.*"

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.