Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website and Server Administration Forum


You are currently viewing our Website and Server Administration Forum as a guest. Please register to participate.
Login



Reply
Problem editing hosts file in Snow Leopard
Old 09-08-2010, 03:00 PM Problem editing hosts file in Snow Leopard
pealo86's Avatar
Super Spam Talker

Posts: 876
Name: Matt Pealing
Location: England, north west
Trades: 0
I am having trouble editing my hosts file in Snow Leopard. Well, I can edit it fine, but the changes seem to give no effect whatsoever.

My hosts file looks like so:

Code:
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
##
127.0.0.1       localhost
255.255.255.255 broadcasthost
::1             localhost
fe80::1%lo0     localhost
127.0.0.1       localhost www.localhost.com
I cannot access localhost by entering '127.0.0.1' into my browser, nor can I access it by entering 'www.localhost.com'.

Firefox simply tells me either 'Unable to Connect' or 'The Connection was reset', respectively.

I've also tried the line:
Code:
 127.0.0.1 www.localhost.com
Is there something I am doing wrong?? I have been looking all over the internet all week and cannot see what I might be missing!

The only way I can connect to localhost is by visiting 'http://localhost:8888/'.

If it helps, I am running MAMP.

Thanks to anyone who can help.
__________________

Please login or register to view this content. Registration is FREE
pealo86 is offline
Reply With Quote
View Public Profile Visit pealo86's homepage!
 
 
Register now for full access!
Old 09-08-2010, 03:29 PM Re: Problem editing hosts file in Snow Leopard
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,390
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
The host file is working, it's just that your server is running on port 8888 rather than the default of port 80.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 09-08-2010, 04:06 PM Re: Problem editing hosts file in Snow Leopard
pealo86's Avatar
Super Spam Talker

Posts: 876
Name: Matt Pealing
Location: England, north west
Trades: 0
Genius!! Set the ports to the default Apache ones and it works like a charm
__________________

Please login or register to view this content. Registration is FREE
pealo86 is offline
Reply With Quote
View Public Profile Visit pealo86's homepage!
 
Reply     « Reply to Problem editing hosts file in Snow Leopard
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11477 seconds with 12 queries