Date: Sat, 2 May 1998 16:56:13 -0400 (EDT) From: Mike <mike@ns1.seidata.com> To: Dan Swartzendruber <druber@mail.kersur.net> Cc: freebsd-net@FreeBSD.ORG Subject: Re: weird behavior with IP aliases Message-ID: <Pine.BSF.3.96.980502164658.26170A-100000@ns1.seidata.com> In-Reply-To: <Pine.BSF.3.96.980502160057.2872A-100000@mail.kersur.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <interface> alias <ip_address> netmask <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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.980502164658.26170A-100000>