Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 May 1997 11:43:10 +0100 (BST)
From:      Scot Elliott <scot@poptart.org>
To:        "Mark S. Velasquez" <msv@arisia.net>
Cc:        freebsd-isp@FreeBSD.ORG
Subject:   Re: Virtual Domains Under 2.1.5
Message-ID:  <Pine.BSF.3.91.970510112852.8286A-100000@homer.duff-beer.com>
In-Reply-To: <2.2.32.19970510003446.01f17e6c@207.100.94.11>

next in thread | previous in thread | raw e-mail | index | archive | help

On Fri, 9 May 1997, Mark S. Velasquez wrote:

> At 08:47 PM 5/8/97 -0400, you wrote:
> >Hi All,
> >
> >One of my customers want's me to set up a virtual server for his
> >compnay.  I need step-by-step directions on setting up apache and
> >FreeBSD 2.1.5 to accept connections for the new domain.  
> 
> 
> I've been playing with this all week. Unfortunately there seems to be a
> problem with FreeBSD 2.1.5R and IP aliasing on my system(or I should with
> its interaction with squid-1.1.10). Its been exhibit very weird behavior(
> works if accesssed via the proxy, BUT, only if the lo0 interface was
> aliased. if the de0 interface is aliased, it fails totally).
> 
> I reinstalled on Solaris 2.5.1 and, so far, its been working...
> 
> 

I've been using FreeBSD 2.1.5R for ages now with a fair number of both
IP-based and Non-IP based virtual servers.  The script I use to make the 
OS listen to it's other addresses is:

---------------------------------------------------------------------
#!/bin/sh
#
# file: /usr/local/etc/rc.d/virtual-ips.sh
# sets up the aliased IP addresses

# IPs are as follows:
#
# 243 = PopTart.org
# 242 = warehouse.co.uk
# 244 = extreme.org.uk
# 245 = i-love-stephen-gately.ie

for haddr in 242 243 244 245; do
	/sbin/ifconfig ed0 inet 194.207.51.$haddr netmask 255.255.255.255 alias
done

-------------------------------------------------------------------------

You should make sure that routing and arp-table entries appear for the 
new adresses, or you won't be able to ping them (they may only appear the 
first time data is received for the new address, so ping them from 
localhost first)...

Part of my netstat -r output is:

Destination        Gateway            Flags     Refs     Use     Netif Expire
194.207.51.243	   0:20:18:60:a9:a6   UHLW        0        4      lo0 =>
194.207.51.243/32  link#1             UC          0        0 


And my arp -a output:

? (194.207.51.243) at 0:20:18:60:a9:a6 permanent


I used so have a lot of trouble getting the other IPs working, but it 
seems that if you locally ping the address then it comes to life 
occasionally ;-)


Scot.



-----------------------------------------------------------------------------
Scot Elliott		scot@poptart.org	Tel: +44 (0)171 2322924
-----------------------------------------------------------------------------
Public key available by finger at:   finger scot@poptart.org
			    or at:   http://www.poptart.org/pgpkey.html





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.91.970510112852.8286A-100000>