tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lorenzo Jiménez <ljime...@nacion.co.cr>
Subject Virtual domain problem
Date Sat, 16 Apr 2005 00:34:34 GMT
Hi,

 

I have one domain www.nacion.com <http://www.nacion.com/>  and another domain www.revistaperfil.com
<http://www.revistaperfil.com/> .

Both domains land on the same ip.

 

We want to have the apps of nacion.com in webapps directory, and the apps from revistaperfil.com
in webapps2.

 

In server.xml we have:

 

<Engine defaultHost="localhost" name="Catalina">

       <!-- This Host is the default Host -->

       <Host appBase="webapps" name="localhost" debug="0">

              <Logger className="org.apache.catalina.logger.FileLogger" 

                     suffix=".txt" 

                     prefix="localhost_log." 

                     timestamp="true"/>

              <Context path="" docBase="ROOT" debug="0"/>

       </Host>

       <!-- This Host is the "www.revistaperfil.com" -->

       <Host appBase="webapps2 " name="www.revistaperfil.com" debug="0">

              <Logger className="org.apache.catalina.logger.FileLogger" 

                     suffix=".txt" 

                     prefix="revistaperfil_log." 

                     timestamp="true"/>

               <Context path="" docBase="Perfil" debug="0"/>

       </Host>

       <Realm className="org.apache.catalina.realm.UserDatabaseRealm"/>

</Engine>

 

The problem is that when he start Tomcat, when we load www.revistaperfil.com <http://www.revistaperfil.com/>
 we land in www.nacion.com <http://www.nacion.com/> .

 

How can we configure Tomcat so it can take the correct action depending on the domain asked?

Do we need to change the context.xml from the webapps also?

 

We don't have Apache installed, only Tomcat 5.

 

Thanks very much,

 

Lorenzo


-------------------------------------------------------------

Si usted no es el destinatario indicado en este mensaje o responsable como persona 
de la entrega del mensaje, no debe copiar o reenviar este mensaje, por favor notifique 
al correo infosegura@nacion.com. Para más referencia sobre términos importantes 
relacionados a este correo visite http://www.nacion.com/disclaimer/index_es2.htm

If you are not the addressee indicated in this message (or responsible for delivery of the

message to such person), you may not copy or send this message to anyone, please notify
to infosegura@nacion.com. Click here for important additional terms relating to this e-mail.

<http://www.nacion.com/disclaimer/index_en2.htm>

-------------------------------------------------------------



Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message