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.*"