[Apache] Forbidden You don’t have permission to access xxx on this server の解決方法
Apache で下記のようなアクセス権限が無いというエラーが出たときの対処方法をメモ。
エラーメッセージ
1 2 | 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 とかの設定を間違って書くとアクセスできなくなる。
<Directory /> Options FollowSymLinks AllowOverride All Order deny,allow Allow from all </Directory> |
参考情報
・ホーム・ディレクトリ以下のpublic_htmlディレクトリをWebで公開してのに,アクセスできない:ITpro
・apache – Forbidden You don't have permission to access / on this server – Stack Overflow