*BSD News Article 75532


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!inferno.mpx.com.au!news.mel.aone.net.au!news.mel.connect.com.au!news.mira.net.au!news.vbc.net!samba.rahul.net!rahul.net!a2i!bug.rahul.net!rahul.net!a2i!ns2.mainstreet.net!news.PBI.net!news.mathworks.com!hunter.premier.net!news1.erols.com!news
From: Ken Bigelow <kbigelow@www.play-hookey.com>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Apache
Date: Tue, 06 Aug 1996 06:38:13 -0700
Organization: A poorly-installed InterNetNews site
Lines: 45
Message-ID: <32074AC5.BDF@www.play-hookey.com>
References: <320439F2.2853@mcs.com> <4u3vc0$o3j@nntp.Stanford.EDU>
NNTP-Posting-Host: kenjb05.play-hookey.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 2.02 (Win16; I)

Annelise Anderson wrote:
> 
> Eli Lazich (elazich@mcs.com) wrote:
> : Could someone please enlighten me as to how one configures apache to run
> : under inetd.  I can't seem to track down the proper line to put into
> : inetd.conf.  So far what I've tried doesn't work.  Also, I remember
> : reading soemthing earlier about there being an issue with regards to
> : whether you want to run it standalone or via inetd and the discussion
> : had something to do with virtual hosting.
> 
> : Eli
> 
> If you run it from inetd, I think it creates another "copy" every
> time it gets a request.  Usually it's run from rc or rc.local, with
> the line /usr/local/sbin/httpd &
> 
> In 2.1 and later versions, this line is enabled if the sysconfig
> file has something like "apache=YES" in it.
> 
>                                 Annelise
> 

Slight correction. Running standalone (the apache="YES" line), it forks 
itself to keep between 5 and 10 servers free to handle requests, up to 
the maximum specified (all values adjustable).

If you get the package from the FreeBSD distribution, forget running it 
under inetd. I get the original source from http://www.apache.org 
(they're up to version 1.1.1 now), so I can enable the dbm module. If you 
want to run it under inetd, you should do the same and also read the 
documentation available on the apache site and in its distribution.

The main drawback to running apache under inetd is that it takes time to 
start each instance of the server. Running it standalone, several copies 
are waiting for any request.

Info on virtual hosting is also available at the apache site.

I hope this helps!
-- 
Ken

Are you interested in   |
byte-sized education    |   http://www.play-hookey.com
over the Internet?      |