From owner-freebsd-isp Mon Aug 20 16:28:29 2001 Delivered-To: freebsd-isp@freebsd.org Received: from orbital.mtl.posixnet.org (orbital.mtl.posixnet.org [66.38.182.19]) by hub.freebsd.org (Postfix) with ESMTP id CE17037B409 for ; Mon, 20 Aug 2001 16:28:24 -0700 (PDT) (envelope-from paul@colba.net) Received: from colba.net (nat.MTL.distributel.NET [66.38.181.24]) by orbital.mtl.posixnet.org (8.11.4/8.11.4) with ESMTP id f7KNWiU01497 for ; Mon, 20 Aug 2001 19:32:45 -0400 (EDT) (envelope-from paul@colba.net) Message-ID: <3B81D733.C5894843@colba.net> Date: Mon, 20 Aug 2001 23:36:19 -0400 From: Paul Khavkine X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-isp@freebsd.org Subject: Re: Virtual Apache and DNS References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 Well for DNS i usually do the same: somehost.com 3600 IN SOA somehost.com. root.somehost.net. ( 2001081901 1800 900 604800 3600 ) 3600 IN A xxx.xxx.xxx.xxx www 3600 IN A xxx.xxx.xxx.xxx for httpd.conf: NameVirtualHost 1.2.3.4 ServerName somehost.com ServerAlias *.somehost.com blahh... Cheers Paul "John A. Hengstler" wrote: > 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 > > > ServerName somehost.com > > > 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 -- ************************************************* Paul Khavkine Network Administrator Distributel Communications 740 Notre Dame West, Suite 1135 Montreal, Quebec, Canada, H3C 3X6 1-514-877-0064 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message