*BSD News Article 67385


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.uwa.edu.au!disco.iinet.net.au!news.uoregon.edu!arclight.uoregon.edu!enews.sgi.com!decwrl!pacbell.com!amdahl.com!netcomsv!uu4news.netcom.com!davsys.com!news.irbs.com!not-for-mail
From: jc@irbs.com (John Capo)
Newsgroups: comp.protocols.tcp-ip,comp.unix.bsd.freebsd.misc,comp.infosystems.www.servers.unix
Subject: Re: Virtual Hosts for Apache under FreeBSD
Date: 30 Apr 1996 14:50:58 -0400
Organization: IRBS Engineering
Lines: 20
Message-ID: <4m5nei$ct2@goombay.irbs.com>
References: <4m57lg$374@news.cityscape.co.uk>
NNTP-Posting-Host: goombay.irbs.com
Xref: euryale.cc.adfa.oz.au comp.protocols.tcp-ip:44227 comp.unix.bsd.freebsd.misc:18512 comp.infosystems.www.servers.unix:13407

In article <4m57lg$374@news.cityscape.co.uk>,
Douglas Reay <Douglas@Beyond2000.co.uk> wrote:
>I am running an apache-0.8.14 web server on an intel PC under FreeBSD 2.1
>
>Apache can support virtual hosts.  IE if two ip numbers point to the machine
>the server runs on, then the server will return a different home page depending
>on which ip number was used to access it.
>
[...]
>So ... does anybody have a FreeBSD port of the VIF patch, or otherwise
>know how to set FreeBSD up to listen on multiple ip numbers? 
>

No patches needed.  ifconfig xx alias 1.2.3.4 netmask 0xffffffff

where xx is the interface name. Man ifconfig for more details.

John Capo                                                   jc@irbs.com
IRBS Engineering                       FreeBSD Servers and Workstations
(954) 792-9551                      Internet Consulting - ISP Solutions