New Zealand ADSL Mailing List


Re: Hosting more than 1 web site on adsl

From: Dan Langille <dan_at_freebsddiary.org>
Date: Sun, 9 Apr 2000 22:17:49 +1200
Message-Id: <200004091017.WAA62291@ducky.nz.freebsd.org>

On 9 Apr 00, at 21:40, Chris Foster wrote:

> To add to my message before it that my main goal is to have my two subdomain
> to resolve to different web sites. Currently the server thinks there is
> only one.
> I am using the virtual host directive.
> Because I have only 1 ip address I am using name-based virtual host.
> This is my configuration that I have at the moment:
>
> NameVirtualHost 123.47.67.89
>
> <VirtualHost 123.47.67.89 www.proweb.co.nz>

try <VirtualHost 123.47.67.89>

> ServerAdmin user@some_domain.co.nz
> DocumentRoot /www/some_user/htdocs

ummm, see below

> ServerName www.proweb.co.nz

This website will be browsed to at http://www.proweb.co.nz

> ScriptAlias /cgi-bin/ "/www/some_user/htdocs/cgi-bin/"
> ErrorLog /www/some_user/logs/some_domain-error_log
> CustomLog /www/some_user/logs/some_domain-access_log
> </VirtualHost>
>
> <VirtualHost 123.45.67.89>
> ServerAdmin user@some_domain.co.nz
> DocumentRoot /www/some_user/htdocs

You should have a different document root here. Otherwise, both websites
present the same documents.

> ServerName proprint.proweb.co.nz

This website will be browsed to at http://proprint.proweb.co.nz

> ScriptAlias /cgi-bin/ "/www/some_user/htdocs/cgi-bin/"
> ErrorLog /www/some_user/logs/some_domain-error_log
> CustomLog /www/some_user/logs/some_domain-access_log
> </VirtualHost>

--
Dan Langille - DVL Software Limited [I'm looking for more work]
http://www.dvl-software.com/ |  http://www.unixathome.org/
http://www.racingsystem.com/ |  http://www.freebsddiary.org/
To unsubscribe: send mail to majordomo@freebsddiary.cx
with "unsubscribe adsl" in the body of the message
Received on Sun Apr 9 22:18:08 2000

This archive was generated by hypermail 2.2.0 : Thu Nov 30 11:48:03 2006 EST