From owner-freebsd-questions Fri Jun 9 6:31:13 2000 Delivered-To: freebsd-questions@freebsd.org Received: from draenor.org (draenor.org [196.36.119.129]) by hub.freebsd.org (Postfix) with ESMTP id D692037C341 for ; Fri, 9 Jun 2000 06:31:04 -0700 (PDT) (envelope-from marcs@draenor.org) Received: from marcs by draenor.org with local (Exim 3.14 #1) id 130OrE-000NMM-00; Fri, 09 Jun 2000 15:29:56 +0200 Date: Fri, 9 Jun 2000 15:29:56 +0200 From: Marc Silver To: Paisios Gatsos Cc: freebsd-questions@freebsd.org Subject: Re: Apache and virtual hosts Message-ID: <20000609152956.U81376@draenor.org> References: <20000609132614.41228.qmail@hotmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <20000609132614.41228.qmail@hotmail.com>; from paisios1@hotmail.com on Fri, Jun 09, 2000 at 04:26:14PM +0300 X-Operating-System: FreeBSD 4.0-STABLE Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I would suggest rather using something like 192.168.0.x for instance instead of 127.0.0.1 :) Basically your apache config file would have the following: BindAddress 192.168.0.x and your virtual hosts would look like: ServerAdmin you@yourdomain.com DocumentRoot /the/path/to/web ServerName www.yourdomain.com ErrorLog /yourlogdir/www.yourdomain.com-error_log CustomLog /yourlogdir/www.yourdomain.com-access_log common I would suggest you read the apache documentation carefully. There's a wealth of information there. Cheers, Marc On Fri, Jun 09, 2000 at 04:26:14PM +0300, Paisios Gatsos wrote: > Hello everybody. > > I need some help for Apache. I have installed version 1.3.6 of Apache Web > Server in my computer. My question is this: > Let's assume that i have a main host with ip number 127.0.0.1. > Can i have a virtual host with the same ip? > If yes, what directives the should contain? > > Thanks. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message