Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!solace!nntp.se.dataphone.net!nntp.uio.no!newsfeeds.sol.net!worldnet.att.net!newsfeed.internetmci.com!news.jb.com!monalisa.primelogic.com!user From: michelle@primelogic.com (Michelle Brownsworth) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: Virtual Web Server Date: Sat, 29 Mar 1997 19:05:24 -0700 Organization: PrimeLogic Communications Corp. Lines: 35 Message-ID: <michelle-2903971905240001@monalisa.primelogic.com> References: <01bc3bbb$f95435e0$1161ffcc@dbox.cleaf.com> NNTP-Posting-Host: monalisa.primelogic.com Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:38091 In article <01bc3bbb$f95435e0$1161ffcc@dbox.cleaf.com>, "Ed Okerson" <eokerson@cleaf.com> wrote: > I recently took on administration of a FreeBSD box that is doing virtual > web hosting. I am familiar with the Apache server they are using and know > how to configure it, but I cannot figure out how to assign more IP > addresses to the box. When I do an > 'ifconfig -a' > it only shows an entry for de0 and a 'netstat -rn' shows the other IP's > assigned with a gateway of link#1 and flags of UHLW, but no netif is > listed. I have scoured the rc files and the FAQ's looking for how to do > this. Can anyone assist? Please respond via e-mail also. > > Ed Okerson I place my virtuals' ifconfigs in /etc/netstart, after the following section: # Set up all the network interfaces, calling startup scripts if needed for ifn in ${network_interfaces}; do if [ -e /etc/start_if.${ifn} ]; then . /etc/start_if.${ifn} ${ifn} fi eval ifconfig_args=\$ifconfig_${ifn} ifconfig ${ifn} ${ifconfig_args} ifconfig ${ifn} done # Configure interface for virtual hosts echo 'configuring virtual hosts...' ifconfig ed1 inet alias 206.100.174.70 netmask 0xffffffff # virtual1.com ifconfig ed1 inet alias 206.100.174.71 netmask 0xffffffff # virtual2.com ifconfig ed1 inet alias 206.100.174.72 netmask 0xffffffff # virtual3.com .\\ichelle