From owner-freebsd-isp Thu Aug 29 04:18:48 1996 Return-Path: owner-isp Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id EAA02975 for isp-outgoing; Thu, 29 Aug 1996 04:18:48 -0700 (PDT) Received: from synwork.com (root@synwork.com [199.3.234.4]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id EAA02970 for ; Thu, 29 Aug 1996 04:18:45 -0700 (PDT) Received: from synwork.com (flaq@ns1.synwork.com [204.120.255.17]) by synwork.com (8.7.5/8.6.12) with SMTP id GAA20996; Thu, 29 Aug 1996 06:17:44 -0500 (CDT) Date: Thu, 29 Aug 1996 06:17:44 -0500 (CDT) From: Mike To: Mikel Lindsaar cc: freebsd-isp@freebsd.org Subject: Re: Virtual Hosting and Apache In-Reply-To: <199608290818.SAA00191@esimene.cynet.net.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-isp@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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 * > > > 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 > > > > 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 > > > [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 ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~