tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tom Burke" <>
Subject Re: Configure multiple number of aliases / sub-domains
Date Thu, 22 Sep 2005 08:37:42 GMT
The Hosts file is hold-over from the pre-DNS method of finding IP 
addresses. Basically, there's a file - 'Hosts' - that holds addresses, 
in the format:

domain_name    ip_address eg

At one time this was the only way that machines on the Internet knew the 
addresses of other machines, and a new Hosts file would be circulated 
(by email) to all the sysadmins who managed connected hosts. (Google for 
'Jonathan Postel' if you want to know more about these early days.) 
Obviously, DNS has replaced all this, except that Hosts remains - in a 
Windows system you'll find it in:

In Linux/Unix I think it's still in /etc ; I remember frantically 
editing /etc/hosts on many systems in the past!

So this is all a part of server-name resolution within networking, not 


----- Original Message ----- 
From: "Assaf" <>
To: "Tomcat Users List" <>
Sent: Thursday, September 22, 2005 9:02 AM
Subject: Re: Configure multiple number of aliases / sub-domains

> My problem is not with the DNS settings. They are
> mapped to the same IP address (my machine) and that
> works fine.
> What do you mean your 'hosts' file? Currently I have a
> host node in the server.xml file. Under it I define
> the various aliases (subdomains).
> Thanks,
> Assaf
> --- Kyle <> wrote:
>> You'll have to programmatically update your 'hosts'
>> file to add in each
>> and every new sub-domain(i.e. virtualhost name) as
>> they signup and make
>> sure your machine is set to check 'hosts' for dns
>> before going anywhere
>> else.
>> That should do the trick.
>> Disclaimer: I've done this on Windows, but haven't
>> tried it on linux.
>> Kyle
> __________________________________
> Yahoo! Mail - PC Magazine Editors' Choice 2005
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

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

View raw message