Date: Thu, 22 Feb 1996 13:59:43 -0500 (EST) From: Will Mitayai Keeso Rowe <mitayai@dreaming.org> To: tim kelley <tim@fifth-avenue.com> Cc: questions@FreeBSD.org Subject: Re: apache Message-ID: <Pine.BSF.3.91.960222135038.7644D-100000@dreamlabs.dreaming.org> In-Reply-To: <Pine.BSF.3.91.950319074026.160A-100000@fifth-avenue.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 19 Mar 1995, tim kelley wrote: > Date: Sun, 19 Mar 1995 07:44:32 +0000 () > From: tim kelley <tim@fifth-avenue.com> > 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 <VirtualHost pau.dreaming.org> ServerAdmin pau@dreaming.org DocumentRoot /home/lucian/public_html ServerName pau.dreaming.org ErrorLog logs/pau.error.log TransferLog logs/pau.log </VirtualHost> <VirtualHost ciip.dreaming.org> ServerAdmin ciip@dreaming.org DocumentRoot /home/ciip/public_html ServerName ciip.dreaming.org ErrorLog logs/ciip.error.log TransferLog logs/ciip.log </VirtualHost> <VirtualHost marginal.dreaming.org> ServerAdmin marginal@dreaming.org DocumentRoot /home/marginal/public_html ServerName marginal.dreaming.org ErrorLog logs/marginal.error.log TransferLog logs/marginal.log </VirtualHost> <VirtualHost fooles.dreaming.org> ServerAdmin fooles@dreaming.org DocumentRoot /home/fooles/public_html ServerName fooles.dreaming.org ErrorLog logs/fooles.error.log TransferLog logs/fooles.log </VirtualHost> <VirtualHost spindly.constantchange.on.ca> ServerAdmin gematria@constantchange.on.ca DocumentRoot /home/gematria/public_html ServerName spindly.constantchange.on.ca ErrorLog logs/spindly.error.log TransferLog logs/spindly.log </VirtualHost> <VirtualHost www.constantchange.on.ca> 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/ </VirtualHost> <VirtualHost constantchange.on.ca> 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/ </VirtualHost> #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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.91.960222135038.7644D-100000>