*BSD News Article 61673


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!bunyip.cc.uq.oz.au!munnari.OZ.AU!news.ecn.uoknor.edu!paladin.american.edu!gatech!newsfeed.internetmci.com!EU.net!sun4nl!news.simplex.nl!Simplex!rob
From: rob@Simplex.simplex.nl (Rob Simons)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Virtual WWW server setup
Date: 18 Feb 1996 22:19:13 GMT
Organization: SimpleX Networking Amsterdam
Lines: 35
Message-ID: <4g88l2$1r2@news.simplex.nl>
NNTP-Posting-Host: simplex.nl
X-Newsreader: TIN [version 1.2 PL2]

Hi,

I want to set up one or more virtual www sites. The servers have 
to appear really sepparate. For that I'm going to do the following:

1) give the ethernet card an alias ip and assign a domainname to 
   this second ip.
2) upon request from inetd on port 80 start a wrapper which checks
   the used ip to contact us.
3) start a httpd from the wrapper which reads the config file which 
   belongs to this domain (ip)

My questions:
Is this the best way to set this up, or does anyone have another 
alternative ?
Which httpd should I use ?  I currently use ncsa httpd in daemon 
mode, but have cern running as well (just set it up to experiment
with) on port 8080 from inetd now.
Can I specify a config file for httpd to read, or will it always 
read the one which is compiled in ?  I.e. will I have to make binaries
for each domain which each read different config files ?

Does anyone have a setup which would also work for me ?  If so, 
can you explain to me how you solved it ?

Thanks,

- Rob.

--
/*--------------------------------------------------------------*\
/*   Rob Simons                      |  rob@simplex.nl          *\
/*   ------------  |  -------------  |  --------  |  -------    *\
/*   Novell Netware System Operator  |  UNIX system operator    *\
/*--------------------------------------------------------------*\