Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Aug 2001 11:53:08 -0700
From:      "John A. Hengstler" <john@hei.net>
To:        <freebsd-isp@freebsd.org>
Subject:   Virtual Apache and DNS
Message-ID:  <NDBBJCFGBCLFCNJCCJPDKEDJCDAA.john@hei.net>

next in thread | raw e-mail | index | archive | help
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
	</VirtualHost>
	<VirtualHost *>
        ServerName somehost.com
	</VirtualHost>

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?NDBBJCFGBCLFCNJCCJPDKEDJCDAA.john>