From owner-freebsd-questions Mon Oct 18 7:46:15 1999 Delivered-To: freebsd-questions@freebsd.org Received: from relay.pair.com (relay1.pair.com [209.68.1.20]) by hub.freebsd.org (Postfix) with ESMTP id 2EAA314BC2 for ; Mon, 18 Oct 1999 07:46:04 -0700 (PDT) (envelope-from hiddink@galileo.or.cr) Received: from verberne (escazu1-a213.racsa.co.cr [196.40.7.214]) by relay.pair.com (8.8.7/8.8.5) with ESMTP id JAA13195 for ; Mon, 18 Oct 1999 09:59:30 -0400 (EDT) Message-Id: <199910181359.JAA13195@relay.pair.com> X-cs: R From: "Bert Hiddink X-RS-Flags: 1,1,1,1,0,0,0 X-RS-Sigset: 0 To: Robert Subject: Name-based virtual hosting Apache 1.3 FreeBSD 2.2.8 Cc: freebsd-questions@FreeBSD.org Comments: Confirmation of reading was requested. Comments: Confirmation of delivery was requested. MIME-Version: 1.0 Content-type: text/enriched; charset=ISO-8859-1 Content-transfer-encoding: 8BIT Date: Sun, 17 Oct 1999 17:02:14 -0600 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 0100,0100,0100Dear Robert, I saw your inquiry sent to the FreeBSD forum about Name-based virtual hosting. I am quite new on FreeBSD. On Thu, 3 Dec 1998, Robert wrote: > Hi! > > I would like very much to host pages from my server using the > name-based > virtual hosting in Apache 1.3.3, on FreeBSD 2.2.6 (may upgrade to > 2.2.8, > suggestions? :) > > I have the vhosting part figured out, but I just need some > verification > before I take the actual step of registering another name.. < > .. > > Is it possible to have more than one domain name assigned to an IP > address? > I have been told that it is, and nothing to the contrary thus far. > > Therefore. > > I assume the way to do this would be to add an entry in > named.boot , which > now looks like this > > named.boot > ---------- > cache . named.root > primary namodn.com named.namodn > primary 0.0.127.IN-ADDR.ARPA localhost.rev > ---------- > > to something like this > > named.boot.correct? > ---------- > cache . named.root > primary namodn.com named.namodn > primary 0.0.127.IN-ADDR.ARPA localhost.rev > primary customer.com named.customer > ---------- > > then mime my (working) named.namodn, which uses ns1.namodn.com, > and have > an ns1.customer.com all set up in named.customer ... > > Would this work? I have a LAN Windows/FreeBSD just for developing purposes. I would like to implement here the name-based virtual hosting feature of Apache 1.3. I got the httpd.conf (virtual hosting part) like this: NameVirtualHost 192.168.1.10 < DocumentRoot /usr/www/users ServerName galileo1.local.galileo.or.cr < < DocumentRoot /usr/www/users/galileo ServerName local.sipromicro.com < < DocumentRoot /usr/www/users/galileo/hp-galileo ServerName local.galileo.or.cr < < DocumentRoot /usr/www/users/coopnet/coopup ServerName local.coopnetupdate.org < < DocumentRoot /usr/www/users/coopnet ServerName local.coopnetaldia.org < < DocumentRoot /usr/www/users/empresa/aenet ServerName local.associate-expert.net < < DocumentRoot /usr/www/users/empresa ServerName local.microempresa.org < < DocumentRoot /usr/www/users/htdocs ServerName local.apache.org < < DocumentRoot /usr/www/users/coninpym ServerName local.coninpyme.org < When I call now f.e. http://local.sipromicro.com from the Netscape browser installed on the FreeBSD-server, it opens correctly the corresponding page. However, when I do the same from a Windows machine in the LAN, it does not recognize this URL. Only when I call the IP-address 192.168.1.10, it opens the /usr/www/users/ directory. Reading your message above, I suppose I have to configure the files in /etc/named.db/ on the FreeBSD server, in order to get the problem fixed. Could you give some hints to get this done, taking into account the httpd-configuration showed above? Do I need to set up a primary or secondary server? Could you help me with some sample files for /etc/named.db/? Many thanks in advance for your appreciated help! Regards, -brt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message