From owner-freebsd-questions Mon Nov 13 12:38:01 1995 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id MAA26175 for questions-outgoing; Mon, 13 Nov 1995 12:38:01 -0800 Received: from pelican.com (pelican.com [134.24.4.62]) by freefall.freebsd.org (8.6.12/8.6.6) with SMTP id MAA26161 for ; Mon, 13 Nov 1995 12:37:55 -0800 Received: from puffin.pelican.com by pelican.com with smtp (Smail3.1.28.1 #5) id m0tF5dV-000K2pC; Mon, 13 Nov 95 12:37 WET Received: by puffin.pelican.com (Smail3.1.29.1 #9) id m0tF5dV-0000ReC; Mon, 13 Nov 95 12:37 PST Message-Id: Date: Mon, 13 Nov 95 12:37 PST From: pete@puffin.pelican.com (Pete Carah) To: questions@freebsd.org Subject: Re: CERN HTTPD In-Reply-To: Sender: owner-questions@freebsd.org Precedence: bulk In article you write: >> I recently installed CERN HTTPD from the packages directory and it works fine. >> The one thing I want to do is point different addresses to different directories >> i.e. I have three www addresses (www.x.y.z, www.a.y.z, and www.b.y.z) which all >> point to the main server (www.x.y.z). I want http://www.a.y.z/ to point to >> http://www.x.y.z/a/ and http://www.b.y.z/ to point to http://www.x.y.z/b/ >> >> Can I do this? If so, how? > >It is not very easy, but yes. Try http://www.thesphere.com/~dlp/TwoServers/ >for an explanation. Well, that isn't so easy with cern but works very easily with apache; ncsa doesn't come with the patches preinstalled but the 'thesphere' web page given above does describe them. (apache is based on ncsa but is heavily modified, and includes the virtual host mapping stuff by default...) (actually it isn't all that hard with cern but requires a new copy of the server for each virtual host.) So if you don't need the proxy features of cern, apache is easy to configure for multiple virtual hosts. (see http://www1.clubnet.net; it heads a tree with several links to more virtual hosts on the same machine. This one is running a more-or-less 2.0.5 with 6 IP addresses on each of two ethernet ports; they all work.) -- Pete