[Apache] Forbidden You don't have permission to access xxx on this server の解決方法

Wed, March 6, 2013 - 1 min read

Apache で下記のようなアクセス権限が無いというエラーが出たときの対処方法をメモ。

エラーメッセージ

Forbidden
You don't have permission to access xxx on this server

ディレクトリのパーミッション設定を確認する

chmod o+x /home/myapp.com

httpd.conf の設定を確認する

httpd.conf に書いている Order deny,allow や、Allow from all とかの設定を間違って書くとアクセスできなくなる。


    Options FollowSymLinks
    AllowOverride All
    Order deny,allow
    Allow from all


参考情報

ホーム・ディレクトリ以下のpublic_htmlディレクトリをWebで公開してのに,アクセスできない:ITpro

apache - Forbidden You don’t have permission to access / on this server - Stack Overflow