From owner-freebsd-questions@FreeBSD.ORG Wed Mar 15 19:31:44 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 D887016A401 for ; Wed, 15 Mar 2006 19:31:44 +0000 (UTC) (envelope-from freebsd@redry.net) Received: from luke.segpub.com.au (luke.segpub.com.au [64.49.254.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id 54C8943D62 for ; Wed, 15 Mar 2006 19:31:41 +0000 (GMT) (envelope-from freebsd@redry.net) Received: (qmail 55381 invoked by uid 89); 16 Mar 2006 06:31:40 +1100 Received: by simscan 1.1.0 ppid: 54996, pid: 55104, t: 16.1891s scanners: clamav: 0.87/m:34/d:1169 spam: 3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on luke.segpub.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.1.0 Received: from unknown (HELO ?192.168.1.35?) (eoghan@redry.net@194.125.78.88) by 0 with SMTP; 16 Mar 2006 06:31:24 +1100 Message-ID: <44186B85.5010007@redry.net> Date: Wed, 15 Mar 2006 19:31:17 +0000 From: eoghan User-Agent: Thunderbird 1.5 (Macintosh/20051201) MIME-Version: 1.0 To: Bob Bomar References: <4418442D.3090807@redry.net> <1142444762.96083.43.camel@beast.hanger.bpfx.org> In-Reply-To: <1142444762.96083.43.camel@beast.hanger.bpfx.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: hosts file 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, 15 Mar 2006 19:31:44 -0000 Bob Bomar wrote: > On Wed, 2006-03-15 at 16:43 +0000, eoghan wrote: >> Hi >> Has anyone got an example of how the hosts file should be setup to allow >> locahost to work in a browser? Mine doesnt work anymore unless i go >> through the ip. This is when i start apache, maybe there is some other >> place i need to set it? The httpd.conf has localhost in it... >> Thanks >> Eoghan > > Do you have the entry: > > ::1 localhost localhost.my.domain > 127.0.0.1 localhost localhost.my.domain > > In your /etc/hosts file? > Hi Yes, mine reads: ::1 localhost nathaniel 127.0.0.1 localhost nathaniel Upon starting apache, i can only get to it by using the ip. 127.0.0.1 wont work either. I just get the unable to connect message from the browser. Any ideas? Thanks Eoghan