LoginSignup
3
2

More than 3 years have passed since last update.

Apache エラー「AH01909」, 警告「AH01797」対応

Last updated at Posted at 2019-05-08

前から調子が悪かったApacheの修正を実施

エラー「AH01797: client denied by server configuration」

現象

以下のエラーがログに記録されていた

error.log
AH01797: client denied by server configuration: <XAMPP_HOME_DIR>/hoge/hoge/index.html

ファイルへのアクセス権が無いよう

原因と対策

Apcheのバージョン2.4からはhttpd.confの設定が変わったよう
以下のように修正

httpd.conf(修正前)
    Alias /hogehoge "<XAMPP_HOME_DIR>/hoge/hoge"
    <Directory "<XAMPP_HOME_DIR>/hoge/hoge">
      Order deny,allow   <-- この部分を変更
      Deny from all      <-- この部分を変更
      Allow from 255.255.255.0/24
    </Directory>
httpd.conf(修正後)
    Alias /hogehoge "<XAMPP_HOME_DIR>/hoge/hoge"
    <Directory "<XAMPP_HOME_DIR>/hoge/hoge">
      Require all denied   <-- これに変更
      Allow from 255.255.255.0/24
    </Directory>

これで治りました
いつバージョンが上がったかは不明

警告「AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name」への対応

なぜかデフォルトのまま変えていないようだったので、httpd-ssl.confServerNameSeverAdminを修正

3
2
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2