From owner-freebsd-questions Thu Feb 22 11:00:17 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id LAA08158 for questions-outgoing; Thu, 22 Feb 1996 11:00:17 -0800 (PST) Received: from dreamlabs.dreaming.org (dreamlabs.dreaming.org [198.96.119.129]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id KAA07986 for ; Thu, 22 Feb 1996 10:59:22 -0800 (PST) Received: (from mitayai@localhost) by dreamlabs.dreaming.org (8.6.12/8.6.12) id NAA14768; Thu, 22 Feb 1996 13:59:45 -0500 Date: Thu, 22 Feb 1996 13:59:43 -0500 (EST) From: Will Mitayai Keeso Rowe To: tim kelley cc: questions@FreeBSD.org Subject: Re: apache In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@FreeBSD.org Precedence: bulk On Sun, 19 Mar 1995, tim kelley wrote: > Date: Sun, 19 Mar 1995 07:44:32 +0000 () > From: tim kelley > To: questions@FreeBSD.org > Subject: apache > > > > Ok, one more time.... > I've got 2 legit domain names ..fifth-avenue.com & nysource.com. > > I want to serve www documents from both. As it is, I have configured > apache to have 2 virtual hosts. I set bindaddress to *, gave the Virtual > host definition for both and I get the same directory when I http to either. > > Anybody understand what is going on??? > > Tim > maybe this will help: each virtual host is a valid thernet device with it's own IP and valid DNS entry which is aliased to an ethernet device in my rc.local: # from rc.local echo 'Ethernet IP aliasing...' ifconfig ed0 alias 198.96.119.3 netmask 0xffffffff ifconfig ed0 alias 198.96.119.5 netmask 0xffffffff ifconfig ed0 alias 198.96.119.6 netmask 0xffffffff ifconfig ed0 alias 198.96.119.9 netmask 0xffffffff ifconfig ed0 alias 198.96.119.11 netmask 0xffffffff ifconfig ed0 alias 198.96.119.12 netmask 0xffffffff ifconfig ed0 alias 198.96.119.13 netmask 0xffffffff ifconfig ed0 alias 198.96.119.14 netmask 0xffffffff # end of excerpt and now my httpd.conf, comments deleted for brevity. # from httpd.conf ServerType standalone Port 80 User nobody Group #-1 ServerAdmin www@dreaming.org ServerRoot /home/www/server BindAddress * ErrorLog logs/dreaming.error.log TransferLog logs/dreaming.log PidFile logs/httpd.pid ServerName www.dreaming.org Timeout 400 MinSpareServers 5 MaxSpareServers 10 StartServers 5 MaxClients 150 MaxRequestsPerChild 30 ServerAdmin pau@dreaming.org DocumentRoot /home/lucian/public_html ServerName pau.dreaming.org ErrorLog logs/pau.error.log TransferLog logs/pau.log ServerAdmin ciip@dreaming.org DocumentRoot /home/ciip/public_html ServerName ciip.dreaming.org ErrorLog logs/ciip.error.log TransferLog logs/ciip.log ServerAdmin marginal@dreaming.org DocumentRoot /home/marginal/public_html ServerName marginal.dreaming.org ErrorLog logs/marginal.error.log TransferLog logs/marginal.log ServerAdmin fooles@dreaming.org DocumentRoot /home/fooles/public_html ServerName fooles.dreaming.org ErrorLog logs/fooles.error.log TransferLog logs/fooles.log ServerAdmin gematria@constantchange.on.ca DocumentRoot /home/gematria/public_html ServerName spindly.constantchange.on.ca ErrorLog logs/spindly.error.log TransferLog logs/spindly.log ServerAdmin gematria@constantchange.on.ca DocumentRoot /home/gematria/public_html/constantchange ServerName www.constantchange.on.ca ErrorLog logs/constantchange.error.log TransferLog logs/constantchange.log Redirect / http://www.io.org/~finnegan/ ServerAdmin gematria@constantchange.on.ca DocumentRoot /home/gematria/public_html/constantchange ServerName constantchange.on.ca ErrorLog logs/constantchange2.error.log TransferLog logs/constantchange2.log Redirect / http://www.io.org/~finnegan/ #end of excerpt. (yes i know there is a better way to do the last two, but i am keeping long term isues in mind, just focus on the formats). Hope this helps! ------------------------------------------------------------------------ Will Mitayai Keeso Rowe at DreamLabs Community Information Network Toronto/Peterborough/Oshawa, Ontario, Canada Web: http://www.dreaming.org/~mitayai IRC: Mitayai Email: mitayai@dreaming.org