Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Mar 95 9:42:17 MST
From:      terry@cs.weber.edu (Terry Lambert)
To:        wollman@halloran-eldar.lcs.mit.edu (Garrett Wollman)
Cc:        PVinci@ix.netcom.com, questions@FreeBSD.org
Subject:   Re: CERN httpd question
Message-ID:  <9503301642.AA26235@cs.weber.edu>
In-Reply-To: <9503301556.AA16352@halloran-eldar.lcs.mit.edu> from "Garrett Wollman" at Mar 30, 95 10:56:27 am

next in thread | previous in thread | raw e-mail | index | archive | help
> 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.

This will work; I've done it with the CERN daemon before, though it
requires FreeBSD or something like it to work properly because of
the multiple address issue.

The NCSA daemon supports this without changes; there was a recent
(~1 month ago) article in the comp.infosystems.www.providers group.

Sorry, I didn't save it.

It had to do with playing bind tricks, not modifying the daemon.


					Terry Lambert
					terry@cs.weber.edu
---
Any opinions in this posting are my own and not those of my present
or previous employers.



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