search

Home  >  Q&A  >  body text

apache - Mac failed to access localhost

I want to access local PHP files on a mac (using the apache server that comes with the Mac) and enable Internet sharing, but the browser is still prohibited from accessing http:/localhost. (The firewall is also turned off)

巴扎黑巴扎黑2702 days ago1050

reply all(1)I'll reply

  • 迷茫

    迷茫2017-06-28 09:29:48

    Is it because you didn’t add a port number after your localhost? I am using mamp, but localhost alone cannot access it. After adding the port number, I can access it

    reply
    0
  • Cancelreply