New Zealand ADSL Mailing List


Re: Hosting more than 1 web site on adsl

From: Chris Foster <chris_at_proweb.co.nz>
Date: Sun, 9 Apr 2000 21:40:47 +1200
Message-ID: <003301bfa207$af7def00$0100a8c0@proweb.co.nz>

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>
    ServerAdmin user@some_domain.co.nz
    DocumentRoot /www/some_user/htdocs
    ServerName 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
    ServerName 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>

Please advise,

Chris

To unsubscribe: send mail to majordomo@freebsddiary.cx
with "unsubscribe adsl" in the body of the message
Received on Sun Apr 9 21:41:05 2000


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