*BSD News Article 75576


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!nntp.coast.net!news.kei.com!newsfeed.internetmci.com!in3.uu.net!psinntp!psinntp!psinntp!usenet2.news.uk.psi.net!uknet!usenet1.news.uk.psi.net!uknet!dispatch.news.demon.net!demon!awfulhak.demon.co.uk!awfulhak.demon.co.uk!awfulhak.demon.co.uk!not-for-mail
From: brian@awfulhak.demon.co.uk (Brian Somers)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Apache
Date: 5 Aug 1996 14:36:47 +0100
Organization: Coverform Ltd.
Lines: 23
Message-ID: <4u4tdf$gj@anorak.coverform.lan>
References: <320439F2.2853@mcs.com>
NNTP-Posting-Host: localhost.coverform.lan
X-NNTP-Posting-Host: awfulhak.demon.co.uk
X-Newsreader: TIN [version 1.2 PL2]

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.

/etc/inetd.conf:
http	stream	tcp	nowait	root	/usr/local/sbin/httpd	httpd

/etc/services (should already be there):
http		 80/tcp	   www www-http		#World Wide Web HTTP
http		 80/udp	   www www-http		#World Wide Web HTTP

Don't forget to set ServerType to inetd and Port to 80 in httpd.conf.

If you want to do virtual hosting, follow the instructions in httpd.conf
and read the ifconfig man page (search for alias).

--
Brian <brian@awfulhak.demon.co.uk>
Don't _EVER_ lose your sense of humour....