Date: Mon, 20 Aug 2001 17:07:35 -0700 From: Edwin Culp <eculp@EnContacto.Net> To: "John A. Hengstler" <john@hei.net> Cc: freebsd-isp@FreeBSD.ORG Subject: Re: Virtual Apache and DNS Message-ID: <998352455.3b81a647a440c@Mail.SavvyWorld.Net> In-Reply-To: <NDBBJCFGBCLFCNJCCJPDKEDJCDAA.john@hei.net> References: <NDBBJCFGBCLFCNJCCJPDKEDJCDAA.john@hei.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Quoting "John A. Hengstler" <john@hei.net>: | 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 * | <VirtualHost *> | ServerName www.somehost.com ServerAlias somehost.com | </VirtualHost> or | <VirtualHost *> | ServerName somehost.com ServerAlias www.somehost.com | </VirtualHost> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?998352455.3b81a647a440c>