On Sun, Nov 21, 1999 at 08:16:19AM -0600, ktb wrote:
> "Eric G . Miller" wrote:
> > 
> > On Sat, Nov 20, 1999 at 08:38:12PM -0600, ktb wrote:
> > > My /etc/hosts looks like this,
> > >
> > > ~$ cat /etc/hosts
> > > 127.0.0.1       xyf     localhost
> > >
> > > What could be wrong?
> > 
> >   That won't cut it. With that entry, http://xyf will work, provided
> >   SeverName xyf
> > 
> >   127.0.0.1     www.xyf.com     localhost

Disclaimer: i could be completely wrong.

i've had various networking troubles unless i had a line something like
this in my /etc/hosts:

0.0.0.0         anomie.local            anomie

i once tried putting it on the localhost line (as you suggested), but
that too caused failures... YMMV, of course. i think with the line
quoted above it might think your machine is named www instead of xyf.

> If I put http://xyf into my browser I get the following,
> 
> Index of /
> 
>     Name                    Last modified       Size  Description
> 
> 
>     Parent Directory        18-Nov-1999 20:07      -  
>     bottle_search_stage2..> 19-Nov-1999 20:54     1k  
> 
> That is with a ending of "index" for file, bottle_search_stage2.  If I
> add "html" on the end of the file [...]

It should have an html on the end to be loaded as an html file. You
could configure it to use .index as an html extention if you really felt
like it, but i see no need to.

> [...] the page will load correctly but then I'm back to the same
> "Netscape can't find server" error. 

That's probably because of the ServerName thing, it forces the server to
respond to any request not coming from that name to redirect to that
name. If that name doesn't resolve... If it should be resolving, get the
nameserver setup fixed. Otherwise, i'd recommend removing the ServerName
directive and considering "UseCanonicalName off".

> I tried changing the line "xyf" in my /etc/hosts to to "www.xyf.com"
> and then Apache won't start,
> 
> xyf:/home/kent# apstart
> Starting web server: apache... failed.

i got this once, too. i forget how i discovered it, but the error turned
out to be a misconfiguration with /etc/hosts where it couldn't find a
valid domain name for the system. Check the apache logs, and anything
else useful looking in /var/log. Also, do "apachectl start" by hand, the
Debian scripts redirect any messages to /dev/null...

Good luck in gettint it to work!


-- 
  finger for GPG public key.
  16 Nov 1999 - new key generated, please stop using the old.

Attachment: pgpuP53CkYDzA.pgp
Description: PGP signature

Reply via email to