Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Mar 1995 10:56:27 -0500
From:      Garrett Wollman <wollman@halloran-eldar.lcs.mit.edu>
To:        PVinci@ix.netcom.com (Paul Vinciguerra)
Cc:        questions@FreeBSD.org
Subject:   CERN httpd question
Message-ID:  <9503301556.AA16352@halloran-eldar.lcs.mit.edu>
In-Reply-To: <199503300333.TAA25057@ix3.ix.netcom.com>
References:  <199503300333.TAA25057@ix3.ix.netcom.com>

next in thread | previous in thread | raw e-mail | index | archive | help
[NB: Please don't cross-mail to multiple FreeBSD lists.  It irritates
the people who get two or more copies.]

<<On Wed, 29 Mar 1995 19:33:04 -0800, PVinci@ix.netcom.com (Paul Vinciguerra) said:

> http//:www.aaa.org showing aaa.html and 
> http://www.bbb.org showing bbb.html.  

> I've been intrigued by the idea, but haven't been able to figure it out.

What you have to do is to give your machine multiple IP addresses:

root@khavrinen$ ifconfig ed0 alias 10.0.0.1 netmask 255.255.255.0
root@khavrinen$ netstat -ian
Name  Mtu   Network     Address            Ipkts Ierrs    Opkts Oerrs  Coll
ed0   1500  <Link>00.00.c0.be.a8.75       101800     0     9631     0  1091
ed0   1500  18.26       18.26.0.162       101800     0     9631     0  1091
ed0   1500  10          10.0.0.1          101800     0     9631     0  1091

You then need to make a modified version of httpd which will bind only
to a specific IP address rather than INADDR_ANY.  Point two copies of
this at different directories and the different IP addresses, and
you're in business.

-GAWollman

--
Garrett A. Wollman   | Shashish is simple, it's discreet, it's brief. ... 
wollman@lcs.mit.edu  | Shashish is the bonding of hearts in spite of distance.
Opinions not those of| It is a bond more powerful than absence.  We like people
MIT, LCS, ANA, or NSA| who like Shashish.  - Claude McKenzie + Florent Vollant



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9503301556.AA16352>