From owner-freebsd-questions Mon Sep 3 13:50:30 2001 Delivered-To: freebsd-questions@freebsd.org Received: from shumai.marcuscom.com (rdu57-28-046.nc.rr.com [66.57.28.46]) by hub.freebsd.org (Postfix) with ESMTP id 9CA0037B408 for ; Mon, 3 Sep 2001 13:50:24 -0700 (PDT) Received: from localhost (marcus@localhost) by shumai.marcuscom.com (8.11.3/8.11.3) with ESMTP id f83KoJ487581; Mon, 3 Sep 2001 16:50:20 -0400 (EDT) (envelope-from marcus@marcuscom.com) X-Authentication-Warning: shumai.marcuscom.com: marcus owned process doing -bs Date: Mon, 3 Sep 2001 16:50:19 -0400 (EDT) From: Joe Clarke To: Andy Myers Cc: Subject: Re: Apache question In-Reply-To: <003101c134b4$d5053350$15fea8c0@heineken> Message-ID: <20010903164718.L86981-100000@shumai.marcuscom.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I'm not an Apache expert, but this is how I have one of my machines configured for NameVirtualHost'ing: NameVirtualHost 172.18.123.33 DocumentRoot /usr/local/share/apache/htdocs DocumentRoot /usr/local/share/apache/htdocs/rtrack ServerName rtrack.cisco.com ServerAlias rtrack ErrorLog /var/log/rtrack_error.log CustomLog /var/log/rtrack_access.log combined DirectoryIndex index.php DocumentRoot /usr/local/share/apache/htdocs ServerName nms-server2.cisco.com ServerAlias nms-server2 I think if you're going to do NameVirtualHost *, you need to specify . You can also run httpd -S to verify your virutal host config. Joe On Mon, 3 Sep 2001, Andy Myers wrote: > Hello all. > > This is an Apache question, but I'm hoping someone here can answer it. > > I want my freebsd box to host another web site with a different domain name. > I set up virtual hosting in httpd.conf as instuction in the apache docs, but > when I try to bring up www.domain2.com in my browser, it always brings up > www.domain1.com. > > www.domain1.com is the main site hosted by apache. The virtual host portion > of my httpd.conf file is: > > NameVirtualHost * > > > ServerAdmin sysadmin@domain2.com > DocumentRoot /usr/local/www/domain2 > ServerName www.domain2.com > > > > Any ideas? I must be missing something! > > Thanks much. > > Andy Myers > Orlando, Florida USA > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message