Date: Sat, 7 Oct 95 16:27 PDT From: pete@puffin.pelican.com (Pete Carah) To: questions@freebsd.org Subject: Re: multiple httpd's listening to different IP addresses? Message-ID: <m0t1iej-0000ReC@puffin.pelican.com> In-Reply-To: <199510071800.LAA25658@aslan.cdrom.com>
next in thread | previous in thread | raw e-mail | index | archive | help
In article <199510071800.LAA25658@aslan.cdrom.com>, Justin T. Gibbs <gibbs@freefall.FreeBSD.org> wrote: >>I have multiple domains served by my site and I want to be able to have >>multiple http daemons listening to different IP addresses (but all on port >>80). This, of course, is so that I can allocate a separate IP address to >>each domain, alias the network interface to receive the multiple addresses >>and then voila!, be able to use URLs such as: >Check out Apache's "virtual host" settings. Apache is in the FreeBSD >ports collection. Works great. A note that probably isn't with apache; the proper syntax to use with ifconfig alias is ifconfig inet www.anglelinear.com netmask 255.255.255.255 alias (we put the extra ifconfig's in rc.local right before the startup of apache) (and that address is real). An advantage of putting these ifconfigs that late in startup is that the dns is running by then so the addresses can be symbolic. (look at www1.clubnet.net or www.macom-phi.com for others of the virtual servers on that machine) AND - routing doesn't seem to work right if any of the IP addresses in a set of aliases is in another subnet. (we tried to handle a IP change from a provider block to our own CIDR by routing both in the router (which works fine) and aliasing the nameserver to both subnet addresses. UDP fails completely and TCP sometimes does.) If anyone know how to make *that* work it'd be nice... What we ended up with was separate boxes temporarily; it's nice that it is so easy to shadow nameservers (news is a little harder since we don't have 9g drives running out our ears. :-(. -- Pete
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?m0t1iej-0000ReC>