Subject: Re: Apache Question
To: Patrick S. Gardella <patrick@ChristianWord.org>
From: The Great Mr. Kurtz [David A. Gatwood] <davagatw@Mars.utm.edU>
List: port-mac68k
Date: 04/04/1997 11:00:04
On Fri, 4 Apr 1997, Patrick S. Gardella wrote:

> I installed and compiled Apache 1.2b7 with no problem.  It starts just 
> fine as well.
> 
> However, since the computer is a standalone (no network interface), I 
> can't get lynx to find the pages I have running on Apache.
> 
> I tried making Apache inetd and changed the inetd.conf file to indicate 
> this.  Services has also been modified to listen to port 80 for httpd.  

eeeewwwwww.  Don't run a web server w/ inetd.  It's _much_ less efficient.
Apache (and NCSA beginning with 1.4 or 1.5) both prefork several copies of
themselves running at once to handle hits at maximum efficiency.  The use
of inetd to control it bogs things way down (inetd has to fork for every
web request, http server starts, serves, quits... very ugly).

> Yet this gives me an error message about sockets (I'm at work and don't 
> have the exact text in front of me).  The gist of it looks like that 
> httpd (inetd) looks for the network interface for the IP address.  Since 
> that doesn't exists, it fails.

Have you tried lynx http://localhost or http://127.0.0.1 (think that's
right)?

Oh yeah!  I forgot about this one.  Make sure you're not in single-user
mode.  Sockets only work in multi-user because none of the interfaces
(even loopback) get configured in single-user, at least by default.


> Making it standalone in httpd.conf runs fine, but as I said above, lynx 
> can't find the server to get the pages.

Like I said, deginitely run it standalone.  :-)



Later,

 /---------------------------------------------------------------------\
|David A. Gatwood             And Richard Cory, one calm summer night,  |
|davagatw@mars.utm.edu      Went home and put a bullet through his head.|
|dgatwood@globegate.utm.edu          --Edwin Arlington Robinson         |
|-----------------------------------------------------------------------|
|http://globegate.utm.edu                  http://www.utm.edu/~davagatw |
|http://mars.utm.edu/~davagatw             http://www.nyx.net/~dgatwood |
 \---------------------------------------------------------------------/