Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Oct 1996 08:32:14 -0700 (PDT)
From:      "Eric J. Schwertfeger" <ejs@bfd.com>
To:        Jack Wenger <jwenger@bentreality.com>
Cc:        questions@freebsd.org
Subject:   Re: Setting up Virtual Domains
Message-ID:  <Pine.BSF.3.95.961025082555.8940E-100000@harlie>
In-Reply-To: <199610251450.JAA02664@mendota.terracom.net>

next in thread | previous in thread | raw e-mail | index | archive | help


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)

<VirtualHost test.bfd.com>
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
</VirtualHost>

where all the locations and such match up, and test.bfd.com is replaced
with the name that corresponds to the IP address.





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95.961025082555.8940E-100000>