From owner-freebsd-questions Sun Mar 8 03:31:19 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA16321 for freebsd-questions-outgoing; Sun, 8 Mar 1998 03:31:19 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from israeline.co.il ([192.114.146.226]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id DAA16304 for ; Sun, 8 Mar 1998 03:31:11 -0800 (PST) (envelope-from judd@israeline.com) Received: from israeline.com (192.114.146.231) by israeline.co.il with ESMTP (Eudora Internet Mail Server 2.0.1); Sun, 8 Mar 1998 13:32:10 +0200 Message-ID: <35028493.C792D9D7@israeline.com> Date: Sun, 08 Mar 1998 13:44:19 +0200 From: Judd Maltin X-Mailer: Mozilla 4.04 [en] (WinNT; I) MIME-Version: 1.0 To: "questions@freebsd.org" Subject: DNS, name-based vhosts, Apache: Revisted Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I found this message and I wanted a touch of clarification. I've got a FreeBSD machine that's supposed to take over a dying Mac (with "Clearly Home") for serving a commercial site, and I wanna do it right the first time. Thanks a bunch! Judd M. judd@israeline.com >Date: Wed, 14 Jan 1998 19:17:00 +0100 (MET) >From: Dirk-Willem van Gulik >To: Steve Hovey >Cc: waqar ahmad , questions@FreeBSD.ORG >Subject: Re: HOW TO CONFIGURE TWO DOMAIN NAMES FOR A SINGLE >COMPUTER. > > >Actually, you might want to check the apache pages for this, >http://www.apache.org as there are 'neater' ways of doing this >without wasting a second (valuable) IP address. In short, assume >a DNS setup like > >ape.com's primary file: > ape.com in soa ns, ... > > www.ape.com in cname www.bigserver.com > QUESTION: BY PRIMARY FILE HE MEANS /etc/namedb/db.ape.com ? WITH /etc/namedb/named.boot: primary bighost.com db.bighost.com primary (bighost IP reverse w/ arpa stuff) bighost-reverse primary ape.com db.ape.com primary (ape backwards) ape-reverse >nut.com's primary file > nut.com in soa, ns, .. > > www.nut.com in cname www.bigserver.com > >and now we have bigserver > bigserver.com in ns, soa,... > > www.bigserver.com in ptr 123.45.56.12 > >(you could make the others also PTR's and even do bogus reverse mapping >if you are into serious hidding.. but the cname is more illustrative) > >Next you put into apache's httpd.conf file > > servertype standalone > port 80 > ... > ServerName www.bigserver.com > > ... > > ServerAdmin webmaster@ape.com > DocumentRoot /www/docs/ape.com > ServerName www.ape.com > ErrorLog logs/ape.com-error_log > TransferLog logs/ape.com-access_log > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message