From owner-freebsd-questions@FreeBSD.ORG Fri May 16 20:26:17 2003 Return-Path: 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 6B84C37B401 for ; Fri, 16 May 2003 20:26:17 -0700 (PDT) Received: from zim.0x7e.net (zim.0x7e.net [203.38.184.132]) by mx1.FreeBSD.org (Postfix) with ESMTP id C066443FA3 for ; Fri, 16 May 2003 20:26:15 -0700 (PDT) (envelope-from listone@deathbeforedecaf.net) Received: from goo.0x7e.net ([203.38.184.164] helo=goo) by zim.0x7e.net with smtp (Exim 3.36 #1) id 19GsKp-0005fd-00; Sat, 17 May 2003 12:56:11 +0930 Message-ID: <012a01c31c24$14342d30$a4b826cb@goo> From: "Rob" To: "Matt L" References: <20030517022956.67162.qmail@web9501.mail.yahoo.com> Date: Sat, 17 May 2003 12:56:17 +0930 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.4920.2300 X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4920.2300 cc: questions@freebsd.org Subject: Re: Regarding Virtual Hosts X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 May 2003 03:26:17 -0000 Have a look at /usr/local/etc/apache/httpd.conf.default - right at the end is an example virtual host. The general idea is to include the line NameVirtualHost * then create some sections that look like ServerName www.mydomain.com DocumentRoot /www/docs/mydomain.com ServerAdmin webmaster@mydomain.com ServerSignature Email CustomLog /var/log/httpd-mydomain.com.log combined for each host, so the content for each site is in a separate directory. Then you need to point all the domain names to your server's IP address - how you do that depends on your nameserver. See the docs at http://httpd.apache.org/docs/vhosts/index.html for a more detailed discussion. ----- Original Message ----- From: "Matt L" To: Sent: Saturday, May 17, 2003 11:59 AM Subject: Regarding Virtual Hosts > Hi this e-mail is regarding setting up virtual hosts using freebsd and hosting multiple domains to point to my ip. I currently registered three domains and i'd like to host my web sites off my local machine. I was wondering how would i be able to have, http://www.mydomain.com and http://www.mydomain2.com both domains pointing to different pages. The problem i'm currently having is; both domains point to the same default domain being, domain 1. Would i create the virtual hosts within httpd.conf? if so how do i go about this. Also, would i add the domains i want to host on my machine within namedb? Any clue or how to pages would be greatly apperciated. > > My current version of freebsd is: FreeBSD 4.8-STABLE #3 > > If anyone has gaim or another messenger and would be willing to give me a hand that would also be greatly apperciated. Thanks > > Regards, Matt > JR. Unix Rookie :-) > > > --------------------------------- > Do you Yahoo!? > The New Yahoo! Search - Faster. Easier. Bingo. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >