From owner-freebsd-questions Thu Aug 8 13:48:32 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3C0DC37B400 for ; Thu, 8 Aug 2002 13:48:30 -0700 (PDT) Received: from mail.dci-corp.com (mail.dci-corp.com [65.88.13.163]) by mx1.FreeBSD.org (Postfix) with SMTP id C0C9343E5E for ; Thu, 8 Aug 2002 13:48:29 -0700 (PDT) (envelope-from shooverfbn@442spot.com) Received: from rocket455 (unknown [172.16.2.50]) by mail.dci-corp.com (Postfix) with SMTP id 56EB11FAD4; Thu, 8 Aug 2002 15:48:29 -0500 (CDT) From: "Stephen Hoover" To: "Stephen Hovey" , Cc: Subject: RE: Apache virtual host question Date: Thu, 8 Aug 2002 15:49:25 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-reply-to: X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal 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 Thanks for the quick reply guys! Stephen Hoover Dallas, Texas > Subject: Re: Apache virtual host question > > If there is only 1 IP address then by default they all have to > be virtual > sites since there is no second IP to differenciate with. > > With apache though in name based virtual, any unknown name is given the > pages of the very first virtualhost defined.. so our very first one on > each server is a "You typoed" kinda message page. > > And each valid virtual - like for pimple.com we define the full correct > name as www.pimple.com with serveraliases of pimple.com *.pimple.com to > catch it all.. > > On Thu, 8 Aug 2002, Stephen Hoover wrote: > > > Sorry this may not be the most appropriate forum for this > posting. I am > > just hoping with the vast knowledge of this list someone > will know the > > answer. > > > > If I have only 1 IP address on the computer and do name based virtual > > hosting, do I have to make ALL the websites virtual? I added > this to my > > httpd.conf > > > > NameVirtualHost * > > > > > > ServerName www.lsmsc.com > > DocumentRoot /usr/local/www/data/lsmsc > > > > > > After I did that I was only able to pull up that website. The main > > servername quit responding (well it started resolving to the other > > document root). I added the main servername as a virtual host and it > > started working again. I just want to make I didn't do something > > incorrect. > > > > Thanks! > > Stephen Hoover > > Dallas, Texas > > > > > > 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