12/11/2012

Enable Tomcat remote access

To reach an application published inside Apache Tomcat using the host's IP (localhost does not work for remote access), you need to modify the server.xml file which is located under Tomcat's conf/ directory.

Look for this piece:

 <Valve className="org.apache.catalina.valves.AccessLogValve"  
 directory="logs" prefix="localhost_access_log." suffix=".txt"  
 pattern="common" resolveHosts="false"/>  


and set resolveHosts parameter to true. You may also need to add a line to the client machines' hosts file so that the IP can be resolved.

No comments:

Post a Comment

With great power comes great responsibility