Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 May 2006 09:30:27 -0400
From:      "Steve Bertrand" <iaccounts@ibctech.ca>
To:        "'freebsd-questions@FreeBSD.ORG'" <freebsd-questions@freebsd.org>
Subject:   RE: troubleshooting network settings
Message-ID:  <20060531133230.7D73943D6B@mx1.FreeBSD.org>
In-Reply-To: <73db090acabea3f364af96f7b267edba@pacific.net.au>

next in thread | previous in thread | raw e-mail | index | archive | help

> > There we have it. Apache is unable to resolve "bsd-box". 
> This hostname 
> > should be resolvable, otherwise Apache will not work. Adding it to 
> > /etc/hosts is the easiest way:
> >
> > 192.168.1.104          bsd-box bsd-box.yourdomain.com
> 
> This line was already in /etc/hosts;
> 
> 127.0.0.1          localhost localhost.home.net bsd-box 
> bsd-box.home.net
> 
> and I've added this line
> 
> 192.168.1.104          bsd-box bsd-box.home.net
> 
> >
> > In addition to Jorn's advice, check /etc/defaults/rc.conf.  
> The file 
> > should exist and have permissions like so:
> >
> > $ ls -l /etc/defaults/rc.conf
> > -r--r--r--  1 root  wheel  31735 May 15 18:48 /etc/defaults/rc.conf
> >
> > and it should have the following line within:
> >
> > $ grep lo0 /etc/defaults/rc.conf
> > ifconfig_lo0="inet 127.0.0.1"   # default loopback device 
> > configuration.
> 
> All present.
> 
> Still cannot connect to localhost.

Take a look at the 'ServerName' directive in your httpd.conf file. Try
uncommenting said directive, and put your IP address beside it. From
httpd.conf, look particularily at the last paragraph:

# ServerName gives the name and port that the server uses to identify
itself.
# This can often be determined automatically, but we recommend you
specify
# it explicitly to prevent problems during startup.
# 
# If this is not set to valid DNS name for your host, server-generated

# redirections will not work.  See also the UseCanonicalName directive.
#  
# If your host doesn't have a registered DNS name, enter its IP address
here.
# You will have to access it by its address anyway, and this will make
# redirections work in a sensible way.

However, I would think the hosts file would have done it though, but
it's worth a try.

Steve




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060531133230.7D73943D6B>