[英]Apache IP address working but localhost does not
I downloaded Apache2 and it is currently running.我下载了 Apache2,它目前正在运行。 I typed in my IP address and it brings me to the "It Works!"我输入了我的 IP 地址,它把我带到了“It Works!” page, however when I type in localhost or 127.0.0.1 I receive an error.页面,但是当我输入 localhost 或 127.0.0.1 时,我收到一个错误。 Can someone tell me whats up?有人可以告诉我怎么回事吗?
check 127.0.0.1 able to ping or not with same machine.检查 127.0.0.1 能否在同一台机器上 ping 通。 check /etc/hosts file having 127.0.0.1 entry or not?检查 /etc/hosts 文件是否有 127.0.0.1 条目? check in apache configuration file Listen 0.0.0.0:80 or not?签入 apache 配置文件 是否听 0.0.0.0:80?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.