From owner-freebsd-questions Mon Oct 18 9:16:34 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 A29E614CF4 for ; Mon, 18 Oct 1999 09:16:28 -0700 (PDT) (envelope-from hiddink@galileo.or.cr) Received: from verberne (escazu1-a232.racsa.co.cr [196.40.7.233]) by relay.pair.com (8.8.7/8.8.5) with ESMTP id LAA25584 for ; Mon, 18 Oct 1999 11:38:40 -0400 (EDT) Message-Id: <199910181538.LAA25584@relay.pair.com> From: "Bert Hiddink" To: freebsd-questions@freebsd.org Date: Mon, 18 Oct 1999 09:46:10 -0600 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Name-based virtual hosting Apache 1.3 FreeBSD 2.2.8 X-mailer: Pegasus Mail for Win32 (v3.12a) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello everybodyt, I saw an inquiry sent by Robert 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 ------- End of forwarded message ------- Bert Hiddink, FUNDACION GALILEO Correo electronico: hiddink@galileo.or.cr Sitio: http://www.galileo.or.cr Tel. (506) 280 8683, telefax. (506) 280 8847 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message