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
myhost.co.uk 123.45.123.45
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:
[windir]\System32\Drivers\Etc
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
Tomcat.
Tom
----- Original Message -----
From: "Assaf" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
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 <[EMAIL PROTECTED]> 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
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]