前から調子が悪かった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.conf
のServerNameとSeverAdminを修正