apache - Cannot resolve localhost: Unknown host on OS X 10.8.2, but 127.0.0.1 is working fine -


Mimop is installed on my MacBook Pro (OS X 10.8.2) I have both Apache server and MISCL server MAMP in green color. Are in the light but I can not access the local host; I am able to reach 127.0.0.1. (Both localhosts and 127.0.0.1 were working fine before.)

  Leiheteki MacBook-Pro: ~ Lehey $ Ping Localhost Ping: Localhost can not be solved: Unknown host  

When I try to reach the local host in Safari, it shows:

  Safari page can not open "http: // localhost /" because Safari Server can not fix "localhost"  

In apache_error.log, it shows:

  [Tuesday, February 18, 2014 14:30:43 2014] [error] [customer 127.0.0.1] Customer server configuration denied: / users / lihi / desktop / sites / ddi_store  

My host file is located in private / and looks like this:

 # Host database # is used to configure the local host loopback interface # when the system is booted. Do not change this entry ## 127.0.0.1 localhost 255.255.255.255 Broadcastost :: 1 local host fe80 :: 1% lo0 localhost  

I also tried to destroy the DNS.

Any solution would be greatly appreciated! !!


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -