【发布时间】:2013-03-17 07:24:06
【问题描述】:
好的,所以我在尝试加载此文件时遇到了 403 错误 - 我安装了 Zend 2,甚至通过有人幸运地开箱即用的 youtube 指导安装了 Zend 2。
我遵循了this 的建议,但没有成功,因为LoadModule rewrite_module modules/mod_rewrite.so 没有从我的httpd.conf 文件中注释掉。
我尝试了this,但将Options +Indexes +FollowSymLinks +ExecCGI 添加到我的vhosts.conf 文件没有帮助。
我尝试完全删除 .htaccess 文件。
我尝试注释掉httpd-xampp.conf 文件的“XAMPP 安全概念”部分。
我试着很好地问它,我试着对它大喊大叫——这两种策略都没有结果。
我运行的是 Windows 8,但我似乎无法弄清楚为什么会出现权限错误。为了清楚起见,每次更改后我都会重新启动 Apache。当我从 vhosts.conf 文件中删除条目时,403 消失了,但这会导致该目录中出现 404。我已经包含了来自vhosts.conf 文件的相关代码。感谢您的帮助!
NameVirtualHost *:80
<VirtualHost *:80>
ServerName zf2.localhost
DocumentRoot "C:/Users/Captain/Documents/zf2/public"
SetEnv APPLICATION_ENV "development"
<Directory C:/Users/Captain/Documents/zf2/public>
Options +Indexes +FollowSymLinks +ExecCGI
DirectoryIndex index.php
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
再次感谢。
更新 1
错误日志是:
[Sun Mar 17 03:35:32.627159 2013] [authz_core:error] [pid 5492:tid 1764] [client ::1:50566] AH01630: client denied by server configuration: C:/Users/Captain/Documents/zf2/public/
【问题讨论】:
-
还有一个显而易见的问题:错误日志说什么?
-
@CBroe 我已经包含了弹出的行。
标签: localhost zend-framework2 http-status-code-403