tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Parsons Technical Services" <>
Subject Re: Multiple domain names to a single site
Date Tue, 11 Jan 2005 16:03:26 GMT
Since you asked so nicely.

You will be working with the host entries in the server.xml

>From how I read this you want and .net pointing at the same 
app. You can do this either at the dns level or in the host entry with an 
alias. As for master slave the master will be the desired URL. If you want 
people to use .com the set it up as your main entry and the redirect in the 
dns or alias .net to it. This way when they get to the site the URL in the 
address will be .com

If the mycompany site is the default site, as it appears to be, any URL that 
points to the server IP that does not have a matching host entry will go to 
the mycompany site. So you could just point both mycompany urls to the IP 
and it will work. With this the URL will remain as typed .com or .net   For 
public relations don't do this as confusion will result. Especially when it 
comes to email.

For the add a new host entry under the existing Engine tag "like"

      <Host appBase="webapps" name="" debug="99">
        <Logger className="org.apache.catalina.logger.FileLogger" 
prefix="myapp_log." suffix=".txt" timestamp="true"/>
Note logging will vary with version. Copy existing entry and modify.

In the myapp.xml for, under the context tag change the path to be 

My setup differs in that for me uses a different appbase from 
webapps. So if something doesn't work hopefully someone can point out the 


----- Original Message ----- 
From: "Paul Taylor" <>
To: "Tomcat Users List" <>
Sent: Tuesday, January 11, 2005 10:17 AM
Subject: Re: Multiple domain names to a single site

> Could anyone get me started on this please ?
> Paul Taylor wrote:
>> I have three domains
>> I have setup a website with a hosting provider using Tomcat 5 which 
>> contains the ROOT application and myapp application so currently
>> if user goes to they will go to ROOT application 
>> and if they go to it will go to myapp 
>> appliation.
>> I now want to change the dns records of my domains to point to my 
>> website.
>> My question is are all the domains equal or is there a concept of a 
>> master and aliases, i.e should I just change the nameservers  of all 
>> three domains to use my hosts name servers or is it more complicated to 
>> that for example I could map to redirect to
>> Also is it possible for to go straight to the relvent 
>> application ( rather than the root 
>> application (
>> Thanks Paul
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail:
>> For additional commands, e-mail:
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message