From owner-freebsd-isp Mon Aug 20 17: 8: 0 2001 Delivered-To: freebsd-isp@freebsd.org Received: from EnContacto.Net (adsl-63-205-16-205.dsl.mtry01.pacbell.net [63.205.16.205]) by hub.freebsd.org (Postfix) with ESMTP id 9F29037B407 for ; Mon, 20 Aug 2001 17:07:54 -0700 (PDT) (envelope-from eculp@EnContacto.Net) Received: (from root@localhost) by EnContacto.Net (8.11.5/8.11.4) id f7L07Z223941; Mon, 20 Aug 2001 17:07:35 -0700 (PDT) (envelope-from eculp@EnContacto.Net) Received: from 63.205.16.204 ( [63.205.16.204]) as user eculp@encontacto.net by Mail.SavvyWorld.Net with HTTP; Mon, 20 Aug 2001 17:07:35 -0700 Message-ID: <998352455.3b81a647a440c@Mail.SavvyWorld.Net> Date: Mon, 20 Aug 2001 17:07:35 -0700 From: Edwin Culp To: "John A. Hengstler" Cc: freebsd-isp@FreeBSD.ORG Subject: Re: Virtual Apache and DNS References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 2.3.7-cvs X-Originating-IP: 63.205.16.204 Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Quoting "John A. Hengstler" : | Greetings, | | What is the generally accepted way of handling the following in named and | apache: | Where www.somehost.com and somehost.com get to the same pages. Should | there be 2 VirtualHost entries in httpd.conf and dns as follows, or 1 in | httpd.conf (www.somehost.com) and dns set differently? | | It works as is, but seems to me that their should only be 1 entry in | httpd.conf | | Suggestions appreciated. | | John Hengstler | | httpd.conf: | | # www.somehost.com | # somehost.com | | | NameVirtualHost * | | ServerName www.somehost.com ServerAlias somehost.com | or | | ServerName somehost.com ServerAlias www.somehost.com | But you only need one ed | | named file: | | $ORIGIN com. | somehost.com 3600 IN SOA somehost.com. root.somehost.net. ( | 2001081901 1800 900 604800 3600 ) | 3600 IN A xxx.xxx.xxx.xxx | $ORIGIN somehost.com. | www 3600 IN A xxx.xxx.xxx.xxx | ftp 3600 IN A xxx.xxx.xxx.xxx | smtp 3600 IN A xxx.xxx.xxx.xxx | pop3 3600 IN A xxx.xxx.xxx.xxx | mail 3600 IN A xxx.xxx.xxx.xxx | | | To Unsubscribe: send mail to majordomo@FreeBSD.org | with "unsubscribe freebsd-isp" in the body of the message | ----------------------------------------------------------------------- The illiterate of the 21st century will not be those who cannot read and write, but those who cannot learn, unlearn and relearn. --Alvin Toffler To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message