From owner-freebsd-net Sat May 2 13:56:23 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA16457 for freebsd-net-outgoing; Sat, 2 May 1998 13:56:23 -0700 (PDT) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from ns1.seidata.com (ns1.seidata.com [208.10.211.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA16444 for ; Sat, 2 May 1998 13:56:17 -0700 (PDT) (envelope-from mike@ns1.seidata.com) Received: from localhost (mike@localhost) by ns1.seidata.com (8.8.8/8.8.5) with SMTP id QAA27947; Sat, 2 May 1998 16:56:13 -0400 (EDT) Date: Sat, 2 May 1998 16:56:13 -0400 (EDT) From: Mike To: Dan Swartzendruber cc: freebsd-net@FreeBSD.ORG Subject: Re: weird behavior with IP aliases In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Sat, 2 May 1998, Dan Swartzendruber wrote: > I was just helping someone set up an apache web server on a 2.2.5 box. > To serve virtual domains, we decided to use IP aliasing on the ethernet [deleted] Here's the steps I take when setting up virtual domains under FreeBSD: First, I select a free IP (as you've done with 199.1.2.100). I then add a line for this ip to /usr/local/etc/rc.d/aliases.sh formatted as 'ifconfig alias netmask '. For your ip address, this could look something like (assuming vx0 int): ifconfig vx0 alias 199.1.2.100 netmask 255.255.255.255 aliases.sh will be ran at boot time, but go ahead and make this ifconfig active by just typing it at the command line... Now, 'ifconfig -a | grep 100' should show something like: inet 199.1.2.100 netmask 0xffffffff broadcast 199.1.2.100 After this, you simply make the necessary DNS and apache modifications to name and point to the domain... Good luck... Mike Hoskins SEI Data Network Services, Inc. noc@seidata.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message