Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Aug 1996 06:17:44 -0500 (CDT)
From:      Mike <flaq@synwork.com>
To:        Mikel Lindsaar <mikel@cynet.net.au>
Cc:        freebsd-isp@freebsd.org
Subject:   Re: Virtual Hosting and Apache
Message-ID:  <Pine.BSI.3.94.960829061523.20973A-100000@synwork.com>
In-Reply-To: <199608290818.SAA00191@esimene.cynet.net.au>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 29 Aug 1996, Mikel Lindsaar wrote:

> Right.
> 
> Let me see if I have this straight (it is working for one domain but I am
> not sure if it will work for more)
> 
> I am using Apache 1.0.5 and FreeBSD 2.1.0 Stable
> 
> I want to virtual host www.my.com.au and www.au.some.com.
> 
> Under /usr/local/etc/http/conf/httpd.conf I have the following (relevant
> only)
> 
> [Begin Sniplette]
> 
> BindAddress *
> 
> <VirtualHost www.my.com.au>
> ServerAdmin webmaster@cynet.net.au
> DocumentRoot /www/virtual/www.my.com.au
> ServerName www.my.com.au
> ErrorLog logs/www.my.com.au-error_log
> TransferLog logs/www.my.com.au-access_log
> </VirtualHost>
> 
> <VirtualHost www.au.some.com>
> ServerAdmin webmaster@cynet.net.au
> DocumentRoot /www/virtual/www.au.some.com
> ServerName www.au.some.com
> ErrorLog logs/www.au.some.com-error_log
> TransferLog logs/www.au.some.com-access_log
> </VirtualHost>
> 
> [EndSniplette]
> 
> I have created the directories /www/virtual/www.my.com.au and
> /www/virtual/www.au.some.com and put the relevant files in there.
> 
> I have organised the following DNS entries to be put in their appropriate
> files:
> 
> www.my.com.au.  IN A  203.24.16.10  <== "unused" IP Address
> www.au.some.com.  IN A  203.24.16.12  <== "unused" IP Address 10  IN PTR 
> www.my.com.au.
> 12  IN PTR  www.au.some.com.
> 
> Now.
> 
> Does anyone see any problems with this?  And can I keep doing this until I
> run out of system resources (ram, hdd, processor speed)?
> 
> Also.
> 
> Does the virtual hosting only apply to complete domains?  Or can you
> virtual host a single name of a domain?  Such as in the above example,
> creating an entry for computer1.cynet.net.au when the httpd process is
> running on www.cynet.net.au?
> 

Looks okay to me.  All you need to do is assign those IP's to an
interface, restart APache and you should be in business.  I've heard of
people with hundreds of virtuals under FreeBSD and Apache.

Mike

~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
    Syn-Work Media, Inc.   | WWW Development & Hosting | Life Safety    
       http://www.synwork.com | Systems Integration       | CCTV           
   mike@synwork.com       | Voice/Data/Fiber          | Access Control 
     Flaq on IRC            | Dukane Distributor        | BICSI/RCDD     
                   :|:|:|: Powered By FreeBSD :|:|:|:
		     Turning PC's Into Workstations
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSI.3.94.960829061523.20973A-100000>