Return to BSD News archive
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!oleane!dish.news.pipex.net!pipex!news.mathworks.com!newshost.marcam.com!zip.eecs.umich.edu!newsxfer.itd.umich.edu!agate!news.mindlink.net!vanbc.wimsey.com!io.org!nobody From: taob@io.org (Brian Tao) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: WWW domain-name aliases on a single machine (Bind)? Date: 9 Jul 1995 12:42:17 -0400 Organization: Internex Online (io.org) Data: 416-363-4151 Voice: 416-363-8676 Lines: 39 Message-ID: <3tp0t9$123@ionews.io.org> References: <3tkhtd$6mk@news1.best.com> NNTP-Posting-Host: io.org In article <3tkhtd$6mk@news1.best.com>, John R. Haggis <haggis@netcom.com> wrote: > >I'm looking for an OS to set up a Web server. I need to set up multiple >domain names to link to web pages without subdirectory path designations, >e.g.: > http://www.userdomain.com/ > >NOT: > http://www.topdomain.com/~user > >I heard that on Linux, you couldn't do this... Something about the version >of "bind" that ran on it. You *can* do it under Linux, but it's rather messy and requires patches galore and replacement binaries. >I heard that on BSDI, you CAN do it the way I >want, but that's too expensive for me right now. > >Is it possible on freeBSD? It can be done the same way on FreeBSD as on BSD/OS. In my case, my Web server is in a C-class domain, and I want to assign multiple IP's to a single network interface (an NE2000 card, device ed1): ifconfig ed1 inet 140.109.40.248 netmask 0xffffff00 ifconfig ed1 inet 140.109.40.249 netmask 0xffffffff alias ifconfig ed1 inet 140.109.40.250 netmask 0xffffffff alias ifconfig ed1 inet 140.109.40.251 netmask 0xffffffff alias ifconfig ed1 inet 140.109.40.252 netmask 0xffffffff alias [etc..] note ---^^ That's it. The machine will now answer to 5 IP addresses. Now you need an HTTP server that can bind to a port at an individual address. The Apache server will do this, and works quite nicely with FreeBSD. See http://www.apache.org/ . -- Brian ("Though this be madness, yet there is method in't") Tao taob@gate.sinica.edu.tw <-- work ........ play --> taob@io.org