Home  >  Q&A  >  body text

Server - After changing the Apache port to 8080, localhost cannot be used to access local files.

Port 80 can use localhost to access local php files, but it won't work after changing to 8080. Port 80 is used by IIS. So how to use localhost to access local files under port 8080?

曾经蜡笔没有小新曾经蜡笔没有小新2713 days ago1051

reply all(2)I'll reply

  • PHP中文网

    PHP中文网2017-05-16 16:59:48

    The format of

    URL is 协议://域名:端口/路径
    如果端口号不写的话默认http80https443,ftp21。。。
    协议不写的话浏览器会替你添加httpprotocol.

    reply
    0
  • 给我你的怀抱

    给我你的怀抱2017-05-16 16:59:48

    localhost:8080

    reply
    0
  • Cancelreply