2015/07/15

[筆記] Mac OS X Yosemite 設定 Apache 個人站台 403 問題

網路上找到的文章大多是提到在 username.conf 中寫入以下設定



  1. <Directory "/Users/username/Sites/">
  2. Options Indexes MultiViews FollowSymLinks
  3. AllowOverride All
  4. Order allow,deny
  5. Allow from all
  6. </Directory>

但 10.10 之後的 Apache 2.4 的設定應為

  1. <Directory "/Users/username/Sites/">
  2. AllowOverride All
  3. Options Indexes MultiViews FollowSymLinks
  4. Require all granted
  5. </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

沒有留言:

張貼留言