Under TOMCAT8, more attention is paid to safety. If you want to use the administration console to deploy your app, you need to modify more configurations.
- In the $tomcat_base$/webapps/manager/meta-inf/context.xml
Adding "|10.\d+\.\d+\.\d+" means that the IP address is 10.*.*.* can access the console's manager App, otherwise only the server can access
<antiresourcelocking= "false" privileged= "true"> <className= "Org.apache.catalina.valves.RemoteAddrValve" Allow= "127\.\d+\.\d+\.\d+|::1|0:0:0:0:0:0:0:1|10.\d+\.\d+\.\d+"/> </ Context >
- In $tomcat_base$/conf/tomcat-users.xml, add management roles and account configuration
<rolerolename= "Manager-gui"/><rolerolename= "Manager-script"/><rolerolename= "MANAGER-JMX"/><rolerolename= "Manager-status"/><Userusername= "Tomcat"Password= "Tomcat"Roles= "Manager-gui,manager-script,manager-jmx,manager-status"/>
- Once configured, restart Tomcat.
TOMCAT8 Configuring online Management app Features