Article 6FEEJ [SOLVED] running Tomcat with only IP address

[SOLVED] running Tomcat with only IP address

by
mfoley
from LinuxQuestions.org on (#6FEEJ)
I've cloned a running httpd/tomcat system with webapps running on the source system. The target system is essentially identical, but is installed on an office LAN with a broken DNS. For this linux host on this LAN you can get to the web pages only by IP: http://192.168.0.10. It does not work if you specify the actual host name: http://people. Using the IP only, the httpd works (I get "It works!"). Now I want to add in Tomcat. I've added the necessary Module and worker files to httpd.conf and httpd-tomcat.conf. Again, cloned from the original system. I believe tomcat is running. CATALINA_HOME/logs/catalina.out shows no errors and ps ax show tomcat running. However, now http://192.168.0.10 still gives "It works!" (from the httpd document_root) and http:/192.168.0.10/index.jsp give a 404 "Not Found" on the browser, nothing in catalina.out.

I've tried adding the following to server.xml:
Code: <Host name="people" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">

<Logger className="org.apache.catalina.logger.FileLogger" directory="logs/" prefix="cwa_access" suffix=".log" timestamp="true"/>

<Context path="" docBase="cwa" reloadable="false" allowLinking="true">
<WatchedResource>/WEB-INF/web.xml</WatchedResource>
</Context>

<Alias>192.168.0.10</Alias>
</Host>This doesn't work. Yes, there is a webapps/cwa directory with jsp files.

Ideas?
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments