From owner-freebsd-questions@FreeBSD.ORG Wed May 31 13:32:32 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 45AA516ADCB for ; Wed, 31 May 2006 13:32:32 +0000 (UTC) (envelope-from iaccounts@ibctech.ca) Received: from pearl.ibctech.ca (pearl.ibctech.ca [209.167.58.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7D73943D6B for ; Wed, 31 May 2006 13:32:30 +0000 (GMT) (envelope-from iaccounts@ibctech.ca) Received: (qmail 30137 invoked by uid 1002); 31 May 2006 13:32:29 -0000 Received: from iaccounts@ibctech.ca by pearl.ibctech.ca by uid 89 with qmail-scanner-1.22 (spamassassin: 2.64. Clear:RC:1(209.167.16.15):. Processed in 2.619669 secs); 31 May 2006 13:32:29 -0000 Received: from unknown (HELO xzibit) (209.167.16.15) by pearl.ibctech.ca with (RC4-MD5 encrypted) SMTP; 31 May 2006 13:32:26 -0000 From: "Steve Bertrand" To: "'freebsd-questions@FreeBSD.ORG'" Date: Wed, 31 May 2006 09:30:27 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 In-Reply-To: <73db090acabea3f364af96f7b267edba@pacific.net.au> Thread-Index: AcaEbUH8A2GgyswhTmaoXD0UHViaFQASLljA X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 X-Qmail-Scanner-Message-ID: <114908234667530131@pearl.ibctech.ca> Message-Id: <20060531133230.7D73943D6B@mx1.FreeBSD.org> Subject: RE: troubleshooting network settings X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 May 2006 13:32:43 -0000 > > 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