Query regarding domain name services.
We would like to have several different WWW servers running on the
same physical computer. Each WWW server corresponds to a different
Domain Name. Each Domain Name will have a CNAME record pointing
to the same computer.
Is there any way to get WWW server to tell which is coming in as.
For example, assume that our two server names are
www.zing.com
www.rotgut.com
Both are duly registered with internic. Both have CNAME records
pointing to a machine at 143.43.290.45
We would like a net surfer coming in
as
http://ww.zing.com/home.html
to get a different home page than someone coming in as
http://ww.rotgut.com/home.html
We don't want to force them to type a different port number when they
enter the URL in their browser. We don't want a different home page name.
In general, we may want to do something similar with telnet, disambiguating
between multiple Domain Names that point to the same IP address and having
a program behave differently as a funciton of which domain name service
the person uses.
Is this possible? how?