我在 Debian 测试中全新安装了 Apache2,并在如下目录中配置了一个虚拟主机:
<Directory "/path/to/project">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
Run Code Online (Sandbox Code Playgroud)
但是,当我访问它时,它向我显示了 403 Forbidden 错误,并且错误日志显示:
[Mon Sep 23 22:07:57.249276 2013] [authz_core:debug] [pid 8599] mod_authz_core.c(802): [client 127.0.0.1:49057] AH01626: authorization result of Require all denied: denied
[Mon Sep 23 22:07:57.249349 2013] [authz_core:debug] [pid 8599] mod_authz_core.c(802): [client 127.0.0.1:49057] AH01626: authorization result of <RequireAny>: denied
[Mon Sep 23 22:07:57.249361 2013] [authz_core:error] [pid 8599] [client 127.0.0.1:49057] AH01630: client denied by server configuration: /path/to/project/some_file
Run Code Online (Sandbox Code Playgroud)
如果我使用“要求全部授予”,为什么会显示“要求全部拒绝的结果:被拒绝”?
任何用户都可以读取它们的文件,以防万一我尝试将所有者更改为 …
apache-2.4 ×1