From owner-freebsd-newbies Sun Feb 16 23:18:48 2003 Delivered-To: freebsd-newbies@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 18A2737B401 for ; Sun, 16 Feb 2003 23:18:47 -0800 (PST) Received: from its-mu-hestia.its.rmit.edu.au (its-mu-hestia.its.rmit.edu.au [131.170.1.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id C70D843F93 for ; Sun, 16 Feb 2003 23:18:45 -0800 (PST) (envelope-from Neeraj.Arora@ems.rmit.edu.au) Received: from ems.rmit.edu.au (ems.rmit.edu.au [131.170.10.112]) by its-mu-hestia.its.rmit.edu.au (8.10.1/8.10.1/ANTI-SPAM/ANTI-RELAY/HESTIA) with ESMTP id h1H7Igl25474 for ; Mon, 17 Feb 2003 18:18:42 +1100 (EST) Received: from INET1-MTA by ems.rmit.edu.au with Novell_GroupWise; Mon, 17 Feb 2003 18:18:42 +1100 Message-Id: X-Mailer: Novell GroupWise Internet Agent 6.0.3 Beta Date: Mon, 17 Feb 2003 18:18:25 +1100 From: "Neeraj Arora" To: , Subject: Re: Apache 2 hosts Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Sender: owner-freebsd-newbies@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org I recommend that you use VirtualHost with domain names. So that if you = change your dns entry any time, you dont have to update you apache = configuration as well. In the DNS, setup both domain names to point to the same ip address. For = example, the domain names exampleone.org and exampletwo.org have dns entries pointing to 192.168.10.5= 5 and aliases www.exampleone.org and www.exampletwo.org referring to the = original domain names And setup VirtualHost in apache httpd.conf. E.g. ServerAdmin webmaster@exampleone.org DocumenRoot /www/docs/exampleone.org ServerName www.exampleone.org ...and other settings... ServerAdmin webmaster@exampletwo.org DocumenRoot /www/docs/exampletwo.org ServerName www.exampletwo.org ...and other settings... Apache will pick files up from /www/docs/exampleone.org when www.exampleone= .org is requested and /www/docs/exampletwo.org when www.exampletwo.org is = requested. Consult the apache manual for various other settings that you can do. Regards, Neeraj >>> Gannater J=E1nos 02/17/03 05:58PM >>> I have assined another IP address for my computer. I would like to=20 host to domain names on my server. Of course the 2 should be=20 different from each other. How can I do this with a apache? Should I use VirtualDomains like in the freebsddiary.org? To Unsubscribe: send mail to majordomo@FreeBSD.org=20 with "unsubscribe freebsd-newbies" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-newbies" in the body of the message