If you are developing with Ruby on Rails then I am sure you had this happened more than once — type http://localhost:3000 in your browser and after a short delay it goes to http://www.localhost.com because your local server didn't start successfully.
To get rid of this annoyance, change /etc/hosts file and add
127.0.0.1 localhost.com