Discussion:
2 domain names linked to one IP?
(too old to reply)
iasonas
2005-05-20 08:15:03 UTC
Permalink
Hello,

Is it possible to have 2 domain names looking at the same IP and have
a way to separate each request?

For example,
www.blabla.com to be linked at 193.169.2.56/blabla and
www.blahblah.com to be linked at 193.169.56/blahblah ?

Is there an other way to do this?

Thank you
Barb Knox
2005-05-27 11:57:10 UTC
Permalink
Post by iasonas
Hello,
Is it possible to have 2 domain names looking at the same IP and have
a way to separate each request?
For example,
www.blabla.com to be linked at 193.169.2.56/blabla and
www.blahblah.com to be linked at 193.169.56/blahblah ?
Is there an other way to do this?
The usual way is called "virtual hosting", where the web server at (say)
193.169.2.56 uses the HTTP 1.1 "Host:" header to distinguish the requests.
The first one will have "Host: www.blabla.com" and the second "Host:
www.blahblah.com". Any good text on HTTP 1.1 web servers should cover this.
Post by iasonas
Thank you
HTH.
--
---------------------------
| BBB b \ Barbara at LivingHistory stop co stop uk
| B B aa rrr b |
| BBB a a r bbb | Quidquid latine dictum sit,
| B B a a r b b | altum viditur.
| BBB aa a r bbb |
-----------------------------
Rafael Cunha de Almeida
2005-06-06 17:20:22 UTC
Permalink
Post by iasonas
Hello,
Is it possible to have 2 domain names looking at the same IP and have
a way to separate each request?
For example,
www.blabla.com to be linked at 193.169.2.56/blabla and
www.blahblah.com to be linked at 193.169.56/blahblah ?
Is there an other way to do this?
Thank you
You can also separate by the port ip:80 and ip:8080, for example. Other
than that i don't think you have much of a choice. The name is resolved at
the client side so it connects directly through the ip and i don't think
any headers containing the dns address used is passed.

Loading...