If You have one tomcat server, serving for multiple dns names, but only one IP for 
this computer, you can set up several virtual hosts, one for each dns name, or if you 
want all to go into the same application you can set up one virtual host with many 
<Alias>dnsname</Alias> properties.


So you would setup something like this in your tomcathome/conf/server.xml 

<Host name="www.xxxx.com" debug="0" appBase="/somewhere/on/your/harddrive/" >
   <Alias>www.yyyy.com</Alias>
   <Context path="" docBase="/somewhere/on/your/harddrive/" debug="0" 
reloadable="true" autoDeploy="true"/>
</Host>


Hope it helps
-reynir






> -----Original Message-----
> From: Sekhmet [mailto:[EMAIL PROTECTED] 
> Sent: 31. j�l� 2003 22:09
> To: [EMAIL PROTECTED]
> Subject: Address Resolving
> 
> 
> Hi there...
> I recently installed Tomcat 4.0 and I'm still new to this 
> server, but I already read all the documentation that came 
> with the server and still have a question:
>  
> How can I make tomcat resolve different addresses to the same 
> IP? I mean, if I enter www.xxxx.com > <http://www.xxxx.com/>  
> and this points to my static IP, and 
> I also have www.yyyy.com <http://www.yyyy.com/> pointing to 
> the same IP, how can Tomcat redirect the request to the 
> appropriate page?
>  
> Anyone? Please forgive me if this is a dumb question...
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to