Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.wildstar.net!imci5!pull-feed.internetmci.com!news.internetMCI.com!newsfeed.internetmci.com!in1.uu.net!venus.os.com!jupiter From: craigs@os.com (Craig Shrimpton) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: Does FreeBSd support Virtual Hosting? Date: Mon, 27 May 96 18:52:44 GMT Organization: Orbit Systems Lines: 24 Message-ID: <4octua$ci9@venus.os.com> References: <4nrc91$1ead@fidoii.cc.lehigh.edu> NNTP-Posting-Host: jupiter.os.com X-Newsreader: News Xpress 2.0 Beta #0 In article <4nrc91$1ead@fidoii.cc.lehigh.edu>, flash@EECS.Lehigh.EDU (Stephen Corbesero) wrote: >We are looking to add some machines to act as web servers for several >virtual hosts/domains, as our Sparc20 under Solaris is currently >doing. I am considering using FreeBSD, and I am wondering if it can >assign multiple ip addresses to a single ethernet interface. > It does it very well. Simply execute: ifconfig de0 inet myvirtual.com alias route add -host myvirtual.com 127.0.0.1 Obviously replace de0 and the host with your information. I did notice one "funny" on 2.1. I seem to have to issue the ifconfig twice to get it to take on any alias after the first. Does anyone know whay that might be? Other than that, it works great. -Craig =================================================================== Orbit Systems Phone: 508-753-8776 400 Grove St. Email: craigs@os.com Worcester, MA 01605 http://www.os.com/