【发布时间】:2015-02-03 00:18:10
【问题描述】:
我在 Mac OS X Yosemite 10.10.2 上更改 Apache 2.4.9 中的根目录时遇到问题。我正在使用本教程:http://coolestguidesontheplanet.com/forbidden-403-you-dont-have-permission-to-access-username-on-this-server/
当我导航到 http://localhost/~Owner/ 时,我得到 404 Not found。
conf 文件位于 apache2/user 文件夹中。这是httpd 文件、我的conf 文件和httpd-user。
请尽可能明确地回答您的问题;随着我学习更好地检查代码,观看有人在进行实时编码和测试的视频。
【问题讨论】:
-
http://localhost怎么样 -
@Simo localhost 工作;但是,它指向根目录 /Library/Web.../Document。我想要另一个目录。
-
打开httpd.conf文件并更改
ServerRoot "/My/Path"并重启appache -
@Simo 没用
-
默认目录的名称是什么?
标签: apache osx-yosemite