I have been trying to figure this out for a full day now and I need some
help please. I have server.uncc.edu with a vendor's web application on
it that is using Tomcat 5.0.28. There are 2 hostnames DNS aliased to
this server. One hostname will have a reverse proxy in front and the
other hostname will be accessible by only a IP range so I can't use an
alias in a host element. 
 
Both hostnames are serving out the default "if you're seeing this page"
ROOT context from / and all the other default web applications (docs,
jsp-examples, etc) 
I'm trying to have both hostnames serve out the same web application as
their default and only context.
 
Can you see what I am doing wrong?
 
server.xml:
 
    <Engine debug="9" defaultHost="localhost" name="Catalina">
      <Host appBase="webapps" debug="9" name="localhost">
        <Logger className="org.apache.catalina.logger.FileLogger"
prefix="localhost_" timestamp="true"/>
        <Valve className="org.apache.catalina.valves.AccessLogValve"
fileDateFormat="yyyy-MM-dd" pattern="%h %l %u %t &quot;%r&quot; %s %b
&quot;%{Referer}i&quot; &quot;%{User-Ag
ent}i&quot;" prefix="localhost_access_" suffix=".log"/>
      </Host>
      <Host appBase="webapps" debug="9" name="idmuser.uncc.edu">
        <Logger className="org.apache.catalina.logger.FileLogger"
debug="9" prefix="idmuser_" timestamp="true" verbosity="4"/>
        <Valve className="org.apache.catalina.valves.AccessLogValve"
fileDateFormat="yyyy-MM-dd" pattern="%h %l %u %t &quot;%r&quot; %s %b
&quot;%{Referer}i&quot; &quot;%{User-Ag
ent}i&quot;" prefix="idmuser_access_" suffix=".log"/>
      </Host>
      <Host appBase="webapps" debug="9" name="idmmanager.uncc.edu">
        <Logger className="org.apache.catalina.logger.FileLogger"
debug="9" prefix="idmmanager_" timestamp="true" verbosity="4"/>
        <Valve className="org.apache.catalina.valves.RemoteAddrValve"
allow="152.15.4*.*" deny=""/>
      </Host>
      <Realm className="org.apache.catalina.realm.UserDatabaseRealm"/>
    </Engine>

/opt/idm/jakarta-tomcat-5.0.28/conf/Catalina/idmmanager.uncc.edu/ROOT.xm
l 
<?xml version='1.0' encoding='utf-8'?>
<Context debug="9" docBase="idm" path="" reloadable="true"
useNaming="false" workDir="work/Catalina/idmmanager.uncc.edu/_">
</Context>
 
/opt/idm/jakarta-tomcat-5.0.28/conf/Catalina/idmuser.uncc.edu/ROOT.xml 
<?xml version='1.0' encoding='utf-8'?>
<Context debug="9" docBase="idm" path="/" reloadable="true"
useNaming="false" workDir="work/Catalina/idmuser.uncc.edu/_">
</Context>

Scott Lundgren
ITS - Web Services
UNC at Charlotte
http://www.uncc.edu <http://www.uncc.edu/> 
 
 

Reply via email to