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 RE: Virtual domain problem
Date Mon, 18 Apr 2005 14:12:14 GMT
Dear Gurumoorthy:

Thank you very much for your help.
It worked at the first try!

Regards,

Lorenzo



-----Original Message-----
From: Raghupathy,Gurumoorthy [mailto:gurumoorthy.raghupathy@uk.fid-intl.com] 
Sent: Lunes, 18 de Abril de 2005 02:07 a.m.
To: 'Tomcat Users List'
Subject: RE: Virtual domain problem

Do you use tomcat as standalone ?  
Send me the server.xml 


However try 


<Engine defaultHost="www.nacion.com" name="Catalina">

       <Host appBase="webapps" name="www.nacion.com" debug="0">

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

                     suffix=".txt" 

                     prefix="localhost_log." 

                     timestamp="true"/>

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

       </Host>
       <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>

</Engine>


Try this and let me know 


Regards
Guru 



-----Original Message-----
From: Lorenzo Jiménez [mailto:ljimenez@nacion.co.cr] 
Sent: 16 April 2005 01:35
To: Tomcat Users List
Subject: Virtual domain problem
Importance: High


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>

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



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message