This archive contains the latest NCSA HTTPD 1.4.1 that has been patched 
to allow multiple domains on a single HTTPD server. It allows the HTTPD 
to specify different root documents for unique IP or Hostnames.

Example:

http://www.foo.com
http://www.bar.com

Can all reside on the same machine and use the same server, but would 
point to different home pages when accessed.

I didn't write the patch, and I don't know a whole hell of a lot about 
it, but I managed to patch it into the latest 1.4.1 server for Linux and 
get it to work, so I thought I'd put it up. Below is a letter that 
details how to use the added features by the person that made the patch 
available to me.

The patch file that he mentions in the letter is the same one that I have 
included, only I have modified it slightly to reflect a more "sane" 
directory structure. If you want to look at the patch, then please feel 
free... It is located in 

subdocroot.patch

To get this patch to work, I had to move it to the same directory that 
httpd_1.4.1 was located in and then use.

patch -p < subdocroot.patch

Sincerely,
damin@nacs.net (Greg Boehnlein)
New Age Consulting Service (http://www.nacs.net)


From bbaydar@ra.isisnet.com Sat Jun 17 17:00:14 1995
Received: from ra.isisnet.com (ra.isisnet.com [199.45.83.5]) by bab5.nacs.net (8.6.12/8.6.12) with ESMTP id RAA20664 for <damin@bab5.nacs.net>; Sat, 17 Jun 1995 17:00:11 -0400
Received: by ra.isisnet.com (8.6.9/SMI-SVR4)
	id SAA05620; Sat, 17 Jun 1995 18:10:04 -0300
From: bbaydar@ra.isisnet.com (Baha Baydar)
Message-Id: <199506172110.SAA05620@ra.isisnet.com>
Subject: Re: WWW Hosting Charges
To: damin@bab5.nacs.net (Greg Boehnlein)
Date: Sat, 17 Jun 1995 18:10:03 -0300 (ADT)
In-Reply-To: <Pine.LNX.3.91.950616204636.29852C-100000@bab5.nacs.net> from "Greg Boehnlein" at Jun 16, 95 08:46:54 pm
X-Mailer: ELM [version 2.4 PL24alpha3]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Length: 1743      
Status: RO
X-Status: 

I have a patch for the NCSA httpd 1.4.1 server that will do this.
To set this up, grap the ncsa httpd 1.4.1 server,
and then get the patch from:

ftp://ftp.semaphore.com/pub/web/ncsa_httpd/subdocroot.patch

Apply the patch
(put the patch file in the directory where you have installed the
ncsa server (ie: the directory with the httpd_1.4.1 directory in it)
and type: patch -p < subdocroot.patch)

Compile the server.
Edit conf/srm.conf and add for each domain:

SubDocumentRoot <domain or IP> <path to domain documentroot>

ie:
SubDocumentRoot foobar.com /usr/local/etc/httpd/htdocs/foobar

The accesses to this domain will be logged to

logs/access_log.foobar.com


-- 
Baha Baydar				     Sales and Support
	  internet service and information systems
bbaydar@ra.isisnet.com				(902) 429-isis

