From owner-freebsd-isp Mon Aug 20 16:15:53 2001 Delivered-To: freebsd-isp@freebsd.org Received: from mail.atbd.com (mail.atbd.com [206.190.141.129]) by hub.freebsd.org (Postfix) with SMTP id 5B26337B409 for ; Mon, 20 Aug 2001 16:15:47 -0700 (PDT) (envelope-from john@hei.net) Received: (qmail 20632 invoked from network); 19 Aug 2001 18:49:04 -0000 Received: from trout.hei.net (HELO trout) (209.222.163.131) by ftp.hei.net with SMTP; 19 Aug 2001 18:49:04 -0000 From: "John A. Hengstler" To: Subject: Virtual Apache and DNS Date: Sun, 19 Aug 2001 11:53:08 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Importance: Normal 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 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