For security
reasons, Tomcat Manager and Tomcat Host Manager cannot be accessed over a
public IP address. Both applications only work from localhost by default but
you can allow remote connections by changing their configuration.
Connect to Tomcat Host Manager from a different
remote machine
In order to allow
remote connections to the Tomcat Host Manager, follow the instructions below:
- Create the file$CATALINA_HOME/conf/Catalina/localhost/host-manager.xml with the following
content:
<Context privileged="true" antiResourceLocking="false"
docBase="${catalina.home}/webapps/host-manager">
<Valve className="org.apache.catalina.valves.RemoteAddrValve" allow="^.*$" />
</Context> - Start Tomcat:
$CATALINA_HOME/bin/startup.sh
Connect to Tomcat Manager from a different remote machine
In order to allow
remote connections to the Tomcat Manager, follow the instructions below:
- Create the file $CATALINA_HOME/conf/Catalina/localhost/manager.xml with the following
content:
<Context privileged="true" antiResourceLocking="false"
docBase="${catalina.home}/webapps/manager">
<Valve className="org.apache.catalina.valves.RemoteAddrValve" allow="^.*$" />
</Context> - Start Tomcat:
$CATALINA_HOME/bin/startup.sh
No comments:
Post a Comment