UJP - Raspberry Pi3でApache2をセットアップしていたらauthz_core:error AH01630: client denied by server configurationというのがでた

Life is fun and easy!

不正IP報告数

Okan Sensor
 
メイン
ログイン
ブログ カテゴリ一覧

  • カテゴリ Raspberry Pi の最新配信
  • RSS
  • RDF
  • ATOM

ブログ - Raspberry Pi3でApache2をセットアップしていたらauthz_core:error AH01630: client denied by server configurationというのがでた

Raspberry Pi3でApache2をセットアップしていたらauthz_core:error AH01630: client denied by server configurationというのがでた

カテゴリ : 
PC » Raspberry Pi
ブロガー : 
ujpblog 2017/10/19 0:37
 セットアップしてコンテンツを配置して観たのだけれど,エラーがでる.画面上はこう.
Forbidden

You don't have permission to access /index.php on this server.
Apache/2.4.10 (Raspbian) Server at test.ujp.jp Port 80
 そしてアクセスログには,このようにでている.
[Thu Oct 19 00:23:09.782149 2017] [authz_core:error] [pid 3924] [client 
192.168.20.35:52275] AH01630: client denied by server configuration: /www/htdocs/
 Raspbian(Debian)のApache2ではデフォルトでは/var/wwwにコンテンツを配置しているが,それを/wwwディレクトリに移動したのだけれど,それが機嫌を損ねた原因.
 次のようにDirectoryディレクティブでAllowOverrideを追加してあげれば良いです.
root@commet:/etc/apache2# diff -d apache2.conf.20171018a apache2.conf🆑
164c164,172
< <Directory /var/www/>
---
> #20171019 comment out
> #<Directory /var/www/>
> #	Options Indexes FollowSymLinks
> #	AllowOverride None
> #	Require all granted
> #</Directory>
>
> #20171019 add
> <Directory /www/>
root@commet:/etc/apache2#
 このdiffからじゃ分かりにくいけれど,/var/www/を削除して/www/にしているわけです.その後apachectl stop;sleep 5;apachectl startで再開.

トラックバック


広告スペース
Google