Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Mar 2006 19:31:17 +0000
From:      eoghan <freebsd@redry.net>
To:        Bob Bomar <bob@fxp.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: hosts file
Message-ID:  <44186B85.5010007@redry.net>
In-Reply-To: <1142444762.96083.43.camel@beast.hanger.bpfx.org>
References:  <4418442D.3090807@redry.net> <1142444762.96083.43.camel@beast.hanger.bpfx.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



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