*BSD News Article 84230


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!news.idt.net!www.nntp.primenet.com!nntp.primenet.com!ix.netcom.com!news.webspan.net!news.intersurf.net!multiverse!storm.lightning.net!bolt
From: jreddy@lightning.net (John Reddy)
Newsgroups: comp.unix.bsd.freebsd.misc,comp.infosystems.www.servers.unix
Subject: Apache's ScriptAlias
Date: Tue, 03 Dec 96 20:38:20 GMT
Organization: Lightning Internet Services, LLC
Lines: 32
Distribution: world
Message-ID: <58233s$37k_006@bolt.lightning.net>
NNTP-Posting-Host: bolt.lightning.net
Keywords: apache scriptalias virtualhost freebsd bind error
X-Newsreader: News Xpress 2.0 Beta #2
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:32031 comp.infosystems.www.servers.unix:22734


I have the following predicament:

I have a P100 running FreeBSD 2.1.5 with 64 megs of ram.  I am currently 
running Netscape Communications server with 7 virtual hosts.  I use something 
like the following lines for each domain and IP past the default IP and 
hostname for the machine.  

/sbin/ifconfig ed1 inet 206.148.240.20 alias -arp
/sbin/ifconfig ed1 inet 206.148.240.20 alias -arp
/sbin/route add 206.148.240.20 206.148.240.16
arp -s www.zanzibar.com 00:40:f6:24:33:0e pub

Okay, this works fine with the netscape server.  I'm trying to switch over to 
the Apache server.  I want each separate domain to have its own DocumentRoot, 
and its own CGI directory.  Unfortunately, when I set up more than two 
ScriptAliased CGI Directories, it doesn't work.  I get the error on startup:

------------------------
bind: Can't assign requested address
httpd: could not bind to address 206.148.240.31 port 80
------------------------

It doesn't matter what I have at my last Virtual Host entry, whatever it is, 
it gives the error as the last domain listed.  If anyone has ever heard of a 
problem similar to this, please, let me know.

===================================================================
John Patrick Reddy    (aka Reddy, Skip, Rand Al'Thor, Capt. Scruff)
E-Mail: jreddy@lightning.net       http://www.lightning.net/~jreddy
Snail Mail:                PO Box 4317;  Stony Brook, NY 11790-0906
===================================================================