apache版本:Apache/2.4.9 (Unix)
从MacOS 10.9 升级到10.10一直没有用过 Apache 以往配置
Alias /lucy_pack "/Users/apple/lucy_pack"
<Directory "/Users/apple/lucy_pack">
Options Indexes MultiViews
AllowOverride None
order allow,deny
Allow from all
</Directory>
访问是没有问题的,但升级10.10这样一直提示: Forbidden:You don't have permission to access / on this server.
而日志显示:
[Tue Jan 06 17:11:27.923373 2015] [authz_core:error] [pid 940] [client 192.168.0.60:53267] AH01630: client denied by server configuration: /Users/apple/lucy_pack
改成下面就可以访问了。
Alias /lucy_pack "/Users/apple/lucy_pack"
<Directory "/Users/apple/lucy_pack">
Options Indexes MultiViews
AllowOverride None
Require all granted
</Directory>
新版本把 order allow,deny 和 Allow form all 替换成 Require all granted 我是这样理解了。
被坑了一下午。。。。