From owner-freebsd-questions Mon Sep 3 19:36:31 2001 Delivered-To: freebsd-questions@freebsd.org Received: from fbsd.bosa.ca (h24-79-74-200.vc.shawcable.net [24.79.74.200]) by hub.freebsd.org (Postfix) with ESMTP id E2A7B37B407 for ; Mon, 3 Sep 2001 19:36:26 -0700 (PDT) Received: from ska1 (h24-207-52-63.dlt.dccnet.com [24.207.52.63]) by fbsd.bosa.ca (Postfix) with SMTP id 3311F158EB9; Mon, 3 Sep 2001 20:46:50 -0700 (PDT) Message-ID: <004201c134e9$5d6355e0$0ac8a8c0@kimsamy.com> From: "Kulraj Gurm (bosa.ca Account)" To: "Andy Myers" , References: <003101c134b4$d5053350$15fea8c0@heineken> Subject: Re: Apache question Date: Mon, 3 Sep 2001 19:29:03 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 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 Firstly, I'll assume you've taken care of DNS issues (which could alone account for your problems). If both domains are on the same IP then try : NameVirtualHost 232.xxx.xxx.xxx ServerAdmin sysadmin@domain1.com DocumentRoot /usr/local/www/domain2 ServerName www.domain1.com ServerAdmin sysadmin@domain2.com DocumentRoot /usr/local/www/domain2 ServerName www.domain2.com If you have more than one IP aliased on your NIC and you want to use unique IP's for each domain the add a second NameVirtualHost line and edit the IP address line accordingly Hope this helps! Kulraj ----- Original Message ----- From: "Andy Myers" To: Sent: Monday, September 03, 2001 1:13 PM Subject: Apache question > 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