Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 71084 invoked from network); 22 Mar 2004 03:28:47 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 22 Mar 2004 03:28:47 -0000 Received: (qmail 88151 invoked by uid 500); 22 Mar 2004 03:28:16 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 88118 invoked by uid 500); 22 Mar 2004 03:28:16 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 88098 invoked from network); 22 Mar 2004 03:28:16 -0000 Received: from unknown (HELO munk.nu) (213.152.51.194) by daedalus.apache.org with SMTP; 22 Mar 2004 03:28:16 -0000 Received: from munk by munk.nu with local (Exim 4.30; FreeBSD) id 1B5G6y-000HJs-T1 for users@httpd.apache.org; Mon, 22 Mar 2004 03:28:24 +0000 Date: Mon, 22 Mar 2004 03:28:24 +0000 From: Jez Hancock To: users@httpd.apache.org Message-ID: <20040322032824.GD66038@users.munk.nu> Mail-Followup-To: users@httpd.apache.org References: <19a.220c9db3.2d8f89c9@aol.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <19a.220c9db3.2d8f89c9@aol.com> User-Agent: Mutt/1.5.6i Sender: Jez Hancock X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Subject: Re: [users@httpd] Configuration of Apache X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On Sun, Mar 21, 2004 at 07:14:01PM -0500, Remember14a@aol.com wrote: > In Apache configuration file I entered following directives > > NameVirtualHost * > > > ServerName www.domain.com > DocumentRoot /home/domain > > > > ServerName www.domain2.org > DocumentRoot /home/domain2 > > > Once I enter http://localhost I get www.domain.com , how do I visualize > second web site > www.domain2.org I presume you mean that you don't currently have any DNS set up for domain.com or domain2.org - if this is the case you should configure your /etc/hosts file with static DNS entries such as: 127.0.0.1 www.domain.com www.domain2.org this way when you enter: http://www.domain.com/ or http://www.domain2.org/ a request will be made to 127.0.0.1 and the content will be served up according to your vhost config above. > and how do I see both of these sites over the internet. To see these over the internet you need to make the DNS public - - register the domain names with a registrar - configure DNS A records for www.domain.com and www.domain2.org so they both point to the IP address of the webserver that will be serving files for the domains -- Jez Hancock - System Administrator / PHP Developer http://munk.nu/ http://jez.hancock-family.com/ - Another FreeBSD Diary http://ipfwstats.sf.net/ - ipfw peruser traffic logging --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org