tomcat admin accessing admin page on remote (different) machine

By default, the tomcat8.5 administrator can only access the machine where tomcat is installed. If you want to access it on other machines, you need to make configuration changes.

Add users and permissions (<tomcat>\conf\tomcat-users.xml):

<role rolename ="manager-gui"/>

<role rolename="admin-gui"/>

<user username="admin" password="admin" roles="admin-gui,manager-gui" />

Modify the tomcat management function configuration file (<tomcat>/webapps/manager/META-INF/context.xml), comment out the address restrictions:
<Context antiResourceLocking="false" privileged="true" >

    <Valve className="org.apache.catalina.valves.RemoteAddrValve "

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

</Context> is

changed to

<Context antiResourceLocking= "false" privileged="true" >

    <!--

    <Valve className="org.apache.catalina.valves.RemoteAddrValve"

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

    -->

</Context>

Restart the server, refresh Access the browser to log in to access:
http://URL/manager/html

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326933356&siteId=291194637