In my hosts file I have:
## # 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 home.dev fe80::1%lo0 home.dev
Yet, when I go to home.dev, I get the Google search page, and when I go to http://home.dev, I get a blank page. How do I get it to actually go to the index page that says "It works!" (I have index.php in the root directory of /Library/WebServer/Documents with just that).
In System Preferences for Networks, DNS, I have "192.168.1.1" and "home" which are greyed out. If I try to use "+" to add 127.0.0.1, the previous entry gets wiped out.
How do I get this working properly? I've tried different solutions over the years but never got this to work properly. I'm using 10.8 but will be upgrading to Yosemite after it comes out.