From owner-freebsd-questions Wed Sep 6 23:30:39 2000 Delivered-To: freebsd-questions@freebsd.org Received: from hotmail.com (f238.law4.hotmail.com [216.33.149.238]) by hub.freebsd.org (Postfix) with ESMTP id 5C02B37B422 for ; Wed, 6 Sep 2000 23:30:38 -0700 (PDT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 6 Sep 2000 23:30:38 -0700 Received: from 207.208.254.234 by lw4fd.law4.hotmail.msn.com with HTTP; Thu, 07 Sep 2000 06:30:37 GMT X-Originating-IP: [207.208.254.234] From: "Konan Houphoue" To: freebsd-questions@FreeBSD.ORG Subject: Virtual Host Question Date: Thu, 07 Sep 2000 01:30:37 CDT Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 07 Sep 2000 06:30:38.0235 (UTC) FILETIME=[22F996B0:01C01895] Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi all, I'm running Apache 1.3 with FreeBSD 4.0. I have 2 domins registered, say a.com and b.com that resolve to the same IP address configured at my ISP. I've set a name virtual host section in /usr/local/etc/apache/httpd.conf for b.com as follow: NameVirtualHost 1.2.3.4:80 #ip_address:port ServerAdmin me@myserver.b.com DocumentRoot /usr/local/www/b #directory exists ServerName www.b.com ErrorLog /var/log/b/error_log #created CustomLog /var.log/access_log #created The problem is that invoking www.b.com still points at www.a.com directory/documents (the default). ***I also noticed that the file /var/run/httpd.pid does not exist as specified by PidFile directive in httpd.conf. Instead I have /var/run/apache.pid. Any help, please. Thanks, Konan _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message