From owner-freebsd-isp Mon Jul 29 04:47:24 1996 Return-Path: owner-isp Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id EAA21650 for isp-outgoing; Mon, 29 Jul 1996 04:47:24 -0700 (PDT) Received: from brasil.moneng.mei.com (brasil.moneng.mei.com [151.186.109.160]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id EAA21645 for ; Mon, 29 Jul 1996 04:47:23 -0700 (PDT) Received: (from jgreco@localhost) by brasil.moneng.mei.com (8.7.Beta.1/8.7.Beta.1) id GAA20909; Mon, 29 Jul 1996 06:46:44 -0500 From: Joe Greco Message-Id: <199607291146.GAA20909@brasil.moneng.mei.com> Subject: Re: Trying to understand virtual hosting To: robert@chalmers.com.au (Robert Chalmers) Date: Mon, 29 Jul 1996 06:46:44 -0500 (CDT) Cc: freebsd-isp@freebsd.org In-Reply-To: from "Robert Chalmers" at Jul 29, 96 07:56:58 am X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-isp@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > Set up a Zone file for the domain in the DNS records of > the Primary DNS. > > Set up a virtual host.do.main using Listen option in Apache. > (Or set up an alias IP within your own IP space,) > (Does NSCA do Listen as well, or just bind+IP alias?) > > register the domain, and point the Nameserver responsible for > the host.do.main at your real Nameserver on which the domain > has a zone record. > > for instance, register foo.bar.com as a domain, with a > name server of bart.simpson.com, (your actual server). > > Sometimes I see people referring to running virtual domains/hosts > without using bind? I don't understand how that is done. If there > is a domain called foo.bar.com, but it is a virtual domain kept on > the real host/domain bart.simpson.com, and I'm here in OZ, and I > try and locate http://foo.bar.com, it has to be able to find it > in the DNService doesn't it ! There has to be a record somewhere > pointing foo.bar.com --> bart.simpson.com What confuses most people is that the issue of DNS and the issue of virtual domains/hosts are two almost entirely separate problems. You create a virtual Web or FTP host by grabbing an IP number in your range, and telling Apache or your fav Web server that it is "www.xyz.abc". That is really ALL that there is to a virtual host. Now you have to make it work from a DNS point of view. It does not matter how it is done. You may have to create a new zone and register a domain name with InterNIC. The customer may already have a domain, in which case you simply twiddle the existing zone. You might even be hosting a site for a customer with a domain server that is not on-site, in which case you don't do any DNS work at all locally - the remote DNS host does. Because of that, all the instructions I've seen for doing "virtual hosts" are mostly wrong, because they are trying to explain it to people and fail to mention the other possible cases. ... JG