*BSD News Article 93229


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!feed1.news.erols.com!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!ix.netcom.com!news.he.net!newshub.internex.net!masters0.news.internex.net!usenet
From: sparc@linkeasy.net
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Need first hand help w/Apache 1.1 and Mulitiple IPs !!
Date: 9 Apr 1997 23:03:18 GMT
Organization: InterNex Information Services 1-800-595-3333
Lines: 39
Message-ID: <5ih77m$s15@masters0.InterNex.Net>
References: <01bc444b$98b0f0a0$664c1bcc@tony.gcr1.com>
NNTP-Posting-Host: sparc.linkeasy.net
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 1.22 (Windows; I; 16bit)
To: tony@gcr1.com
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:38827

I do it like this.

1. Edit /etc/rc.local to include this line.

/etc/routeback

2. Create a file in the /etc directory called routeback, It should contain 
the following. Replace IP's and interface with your own.

#!/bin/sh

# <VirtualHost www.execusoft.com> added 04-05-97
ifconfig ed0 alias 206.111.40.20 up
route add 206.111.40.20 127.0.0.1

# <VirtualHost www.bensite.com> added 04-08-97
ifconfig ed0 alias 206.111.40.21 up
route add 206.111.40.21 127.0.0.1

# <VirtualHost www.citiusa.com> added 04-05-97
ifconfig ed0 alias 206.111.40.22 up
route add 206.111.40.22 127.0.0.1


3. Edit http.conf  Each Virtual Host needs to be configured here..


<VirtualHost 206.111.40.20>
ServerAdmin webmaster@execusoft.com
DocumentRoot /usr/webcustomers/exec
ServerName www.execusoft.com
ErrorLog logs/www.execusoft-error_log
TransferLog logs/www.execusoft-access_log
</VirtualHost>

This is about it ...