<Directory "/Users/username/Sites/">
Options Indexes MultiViews FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
但 10.10 之後的 Apache 2.4 的設定應為
<Directory "/Users/username/Sites/">
AllowOverride All
Options Indexes MultiViews FollowSymLinks
Require all granted
</Directory>
先讓他會動就好,改天再來研究 2.2 跟 2.4 的差異...
ref:
https://support.apple.com/kb/index?page=search&src=support_site.globalheader.search&locale=zh_TW&q=TA25038
http://coolestguidesontheplanet.com/forbidden-403-you-dont-have-permission-to-access-username-on-this-server/
update:
Apache 官方就有提到 upgrade 該注意的事項 (上次玩apache 好像還是1.3.x,然後就踩到了 ...
http://httpd.apache.org/docs/2.4/upgrading.html#access
沒有留言:
張貼留言