tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jado...@gmail.com
Subject Frustrating Issue with default host
Date Thu, 28 Feb 2008 14:30:27 GMT
I m trying to setup tomcat as below. The host blocks have ips in them.
I have a proxy configured in front of the tomcat with an external ip
which receives all the request for the sites from the external world
and contacts the tomcat (with different hosts configured). The problem
is with </Host> Host name=10.7.0.81, 10.7.0.82 & 10.7.0.83 which are
accesed via connector 8080 by the proxy server. When I use the
http://x.x.x.x (external-ip), it works just fine and all three sites
related to the three hostname above open but when I try accessing the
sites via the dns name instead of the ips, all sites are defaulted to
the defaulthost. Please suggest.
<Server port="8005" shutdown="SHUTDOWN" debug="0">
<!-- Define an Apache-Connector Service -->
<Service name="Tomcat-Apache">
<!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -->
<Connector className="org.apache.coyote.tomcat5.CoyoteConnector"
port="8009" minProcessors="5" maxProcessors="150"
enableLookups="true" redirectPort="8443"
acceptCount="10" debug="0" connectionTimeout="0"
useURIValidationHack="false"
protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>
<Connector port="8080"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="true" redirectPort="8443" acceptCount="100"
debug="0" connectionTimeout="20000"
disableUploadTimeout="true" />
<!-- <Engine name="Apache" defaultHost="10.7.0.63" debug="0"> -->
<Engine name="Tomcat-Apache" defaultHost="10.7.255.76" debug="0">
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="apache_log." suffix=".txt"
timestamp="true"/>
<!-- Access log processes all requests for this virtual host. -->
<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs" prefix="localhost_access_log." suffix=".txt"
pattern="common" resolveHosts="false"/>
<Host name="10.7.0.63" debug="0"
appBase="/opt/jakarta-tomcat-5.0.18/webapps/RO OT/lnholdings">
<Alias>10.7.0.61</Alias>
<Context path="" docBase="" debug="1"/>
<Valve className="org.apache.catalina.valves.AccessLogValve" dire
ctory="logs" prefix="home_access_log." suffix=".txt" pattern="common"
resolveHo sts="false"/>
</Host>
<Host name="10.7.0.62" debug="0"
appBase="/opt/jakarta-tomcat-5.0.18/web apps/ROOT/liquidnet">
<Alias>10.7.0.61</Alias>
<Context path="" docBase="" debug="1"/>
<Valve className="org.apache.catalina.valves.AccessLogValve" dir
ectory="logs" prefix="home_access_log." suffix=".txt" pattern="common"
resolveH osts="false"/>
</Host>
<Host name="10.7.0.64" debug="0"
appBase="/opt/jakarta-tomcat-5.0.18/web apps/ROOT/legal">
<Alias>10.7.0.64</Alias>
<Context path="" docBase="" debug="1"/>
<Valve className="org.apache.catalina.valves.AccessLogValve" dir
ectory="logs" prefix="home_access_log." suffix=".txt" pattern="common"
resolveH osts="false"/>
</Host>
<Host name="10.7.0.81" debug="0"
appBase="/opt/jakarta-tomcat-5.0.18/webapps/ROO T/lnholdings">
<Alias>10.7.0.58</Alias>
<Context path="" docBase="" debug="1"/>
<Valve className="org.apache.catalina.valves.AccessLogValve" dire
ctory="logs" prefix="home_access_log." suffix=".txt" pattern="common"
resolveHo sts="false"/>
</Host>
<Host name="10.7.0.82" debug="0"
appBase="/opt/jakarta-tomcat-5.0.18/webapps/ROO T/liquidnet">
<Alias>10.7.0.66</Alias>
<Context path="" docBase="" debug="1"/>
<Valve className="org.apache.catalina.valves.AccessLogValve" di
rectory="logs" prefix="home_access_log." suffix=".txt"
pattern="common" resolve Hosts="false"/>
</Host>
<Host name="10.7.255.76" debug="0"
appBase="/opt/jakarta-tomcat-5.0.18/webapps/R OOT/liquidnet">
<Alias>10.7.0.66</Alias>
<Context path="" docBase="" debug="1"/>
<Valve className="org.apache.catalina.valves.AccessLogValve" di
rectory="logs" prefix="home_access_log." suffix=".txt"
pattern="common" resolve Hosts="false"/>
</Host>
<Host name="10.7.255.77" debug="0"
appBase="/opt/jakarta-tomcat-5.0.18/webapps/R OOT/legal">
<Alias>10.7.0.97</Alias>
<Context path="" docBase="" debug="1"/>
<Valve className="org.apache.catalina.valves.AccessLogValve" dir
ectory="logs" prefix="home_access_log." suffix=".txt" pattern="common"
resolveH osts="false"/>
</Host>
<Host name="10.7.0.83" debug="0"
appBase="/opt/jakarta-tomcat-5.0.18/webapps/ROO T/legal">
<Alias>10.7.0.97</Alias>
<Context path="" docBase="" debug="1"/>
<Valve className="org.apache.catalina.valves.AccessLogValve" dir
ectory="logs" prefix="home_access_log." suffix=".txt" pattern="common"
resolveH osts="false"/>
</Host>
</Engine>
</Service>
</Server>

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message