Apache 突然停止为 LAN 计算机提供服务,现在仅提供 localhost
TLDR:Apache WAS 为 LAN 计算机提供页面服务,但突然只在本地主机上工作。
背景信息:
(一天后我发现了 WAMP、XAMPP 等软件包) 我单独构建了一个 WAMP 服务器,
- Windows 7 HomePremium 64 位
- Apache 2.2.21
- PHP 5.2.17
- MySQL 5.5
我将包括 httpd.conf, php.ini、错误日志、主机文件,您需要什么,只需告诉我您是否希望将其放在代码粘贴网站上,或者在此处内联。
谢谢你的是: 在构建/运行该服务器的这个月里,我遇到了很多问题和问题,几乎总是 S/O 是最好/最快/最简单的地方,有正确的答案,所以感谢这个社区。 =)
(我不确定这是否在 webapps.stackexchange.com/ 上询问更好,但我所有的 WAMP 搜索结果都在 SO 上,所以..)
<块引用>编辑:我发现了服务器故障,并且跨-在那里发布了。不过,我将其留在这里,因为这是我之前大部分答案的来源,我真诚地感谢您在上个月提供的所有帮助!
TLDR: Apache WAS serving pages to LAN computers, but suddenly only works on localhost.
Background info:
(I discovered the WAMP, XAMPP, etc packages a day after) I built a WAMP server individually, with
- Windows 7 HomePremium 64-bit
- Apache 2.2.21
- PHP 5.2.17
- MySQL 5.5
I will include httpd.conf, php.ini, errorlogs, host file, w/e you need, just tell me if you'd like it on a codepaste site, or inline here.
Thank you's:
I have had tons of problems and questions in the month I've been building/running this server, and almost invariably S/O was the best/fastest/easiest place with the RIGHT answers, so thank you to this community. =)
(I'm not positive if this is better asked on webapps.stackexchange.com/, but all my WAMP search results have been on SO, so..)
EDIT: I found serverfault, and cross-posted this there. I'm leaving it here though, because this is where most of my answers before have come from, and I genuinely mean the Thank You for all the help in the last month!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
检查 ports.conf 中的 Listen 指令。本地主机 (127.0.0.1:80) 可能只有一个条目。如果是这样,请添加
Listen 0.0.0.0:80
,然后重新启动。Check the Listen directives in ports.conf. There may only be one entry for localhost (127.0.0.1:80). If so, add
Listen 0.0.0.0:80
, and restart.