From owner-freebsd-questions Thu Mar 30 08:49:16 1995 Return-Path: questions-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id IAA02807 for questions-outgoing; Thu, 30 Mar 1995 08:49:16 -0800 Received: from cs.weber.edu (cs.weber.edu [137.190.16.16]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id IAA02801 for ; Thu, 30 Mar 1995 08:49:15 -0800 Received: by cs.weber.edu (4.1/SMI-4.1.1) id AA26235; Thu, 30 Mar 95 09:42:17 MST From: terry@cs.weber.edu (Terry Lambert) Message-Id: <9503301642.AA26235@cs.weber.edu> Subject: Re: CERN httpd question To: wollman@halloran-eldar.lcs.mit.edu (Garrett Wollman) Date: Thu, 30 Mar 95 9:42:17 MST Cc: PVinci@ix.netcom.com, questions@FreeBSD.org In-Reply-To: <9503301556.AA16352@halloran-eldar.lcs.mit.edu> from "Garrett Wollman" at Mar 30, 95 10:56:27 am X-Mailer: ELM [version 2.4dev PL52] Sender: questions-owner@FreeBSD.org Precedence: bulk > 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 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.