From owner-freebsd-questions Fri Oct 25 08:32:21 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id IAA26848 for questions-outgoing; Fri, 25 Oct 1996 08:32:21 -0700 (PDT) Received: from horst.bfd.com (horst.bfd.com [204.160.242.10]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id IAA26841 for ; Fri, 25 Oct 1996 08:32:17 -0700 (PDT) Received: from harlie (bastion.bfd.com [204.160.242.2]) by horst.bfd.com (8.7.6/8.7.3) with SMTP id IAA16996; Fri, 25 Oct 1996 08:32:14 -0700 (PDT) Date: Fri, 25 Oct 1996 08:32:14 -0700 (PDT) From: "Eric J. Schwertfeger" X-Sender: ejs@harlie To: Jack Wenger cc: questions@freebsd.org Subject: Re: Setting up Virtual Domains In-Reply-To: <199610251450.JAA02664@mendota.terracom.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Fri, 25 Oct 1996, Jack Wenger wrote: > Hi! > I just got the Sys-Admin job dumped on me. (ye ha) I'm not very > knowledgeable in the mysteries of FreeBSD and Apache, so I need some help. > We've got a pentium 133 w/ 64 Mb co-located at a local ISP (Madison, WI). > We're running FBSD 2.1.0 and Apache 1.1.0. I need to host virtual domains on > this box, and have yet to find a lucid explaination how to do this. First, get a spare box to play with, and practice upgrading. Both your version of FreeBSD and Apache are out of date. > After > doing an exhaustive search, I can't find an understandable description. > Would somebody please write (or point me to) me a fairly detailed, step by > step procedure? I'll be getting IP's from our ISP (they use BSDI, so that's > not a problem. I do know how to add users and I'm running sendmail and that > popper thang. > Thanx! Funny you should ask, I'm working on a how-to web site for setting up web servers, but I haven't made it as far as the virtual stuff. Really simple, though. First, you need to set up an aliased IP address. if you're connected to ethernet, you can simply add a line to /etc/rc.local that looks like this: ifconfig ed0 alias 204.160.242.11 netmask 255.255.255.255 Then, you need to add something like this to the srm.conf file (wherever it is located) ServerAdmin webmaster@bfd.com ServerName test.bfd.com DocumentRoot /usr/local/www/htdocs/test ErrorLog logs/test.bfd.com-error_log TransferLog logs/test.bfd.com-access_log Alias /index.html /usr/local/www/htdocs/test/root.shtml where all the locations and such match up, and test.bfd.com is replaced with the name that corresponds to the IP address.