two sites on the same server

Barry Margolin barmar at bbnplanet.com
Mon Mar 27 05:40:31 UTC 2000


In article <8bm96l$jb2$1 at news01.cit.cornell.edu>,
David Johnson <djj9 at cornell.edu> wrote:
>Say I wanted to host two websites on the same server, same ip, with two
>different domains; for example domain1.dhs.org, and domain2.dhs.org.  How do
>I configure the system and dns for this?  is there a way in the RR to do
>ip/dir like this: "domain1.dhs.org. IN A 128.253.27.147/domain1" ?

In DNS you point both names to the same address, or use a CNAME record.  In
your web server configuration you create virtual hosts to specify the
appropriate directories to use for each hostname.

-- 
Barry Margolin, barmar at bbnplanet.com
GTE Internetworking, Powered by BBN, Burlington, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.



More information about the bind-users mailing list