【发布时间】:2014-12-23 15:06:34
【问题描述】:
我已经下载并安装了 Windows 的 Apache HTTP 服务器。我在C:/mobileTraining/core/workspace/TestProject下创建了一个测试html文件
然后我在httpd.conf 文件中添加了一个权限目录标签,现在它看起来如下所示:
<Directory />
AllowOverride none
Require all denied
</Directory>
<Directory C:/mobileTraining/core/workspace>
Order allow,deny
Allow from all
</Directory>
Alias /TestProject C:/mobileTraining/core/workspace/TestProject
我已经尝试过使用和不使用第一个 Directory 标记,它已经存在。
当我保存这些更改并在我的浏览器中转到 http://localhost/TestProject/TestPage.html(我尝试过 Firefox 和 Chrome)时,我收到了连接错误。这是来自 Chrome:
This webpage is not available
Google Chrome's connection attempt to localhost was rejected. The website may be down, or your network may not be properly configured.
Error code: ERR_CONNECTION_REFUSED
在我的设置中是否有一些我遗漏的明显的东西?
谢谢
【问题讨论】:
-
你重启服务了吗?
-
我查看了我的 Apache 服务监视器,没有要重新启动的服务。这通常是怎么做的?
标签: windows apache localhost configuration-files httpserver