はじめに
テストページにアクセスしようとしたらこんなのが表示された人は試してみてください
修正点
こうなっているひとはエラーになる可能性があります
/etc/httpd/conf.d/welcome.conf
<LocationMatch "^/+$">
Options -Indexes
ErrorDocument 403 /.noindex.html
</LocationMatch>
このように追加してみてください
/etc/httpd/conf.d/welcome.conf
<LocationMatch "^/+$">
Options -Indexes
ErrorDocument 403 /.noindex.html
</LocationMatch>
<Directory /usr/share/httpd/noindex>
AllowOverride None
Require all granted
</Directory>
Alias /.noindex.html /usr/share/httpd/noindex/index.html
考察
テストページが表示されない理由として以下を疑いました。
・ .htaccessの影響をテストページのファイルも受けているかもしれない
→そちらを無効にする設定を追加
・参照先ファイルのパスが違う
→Aliasで定義しました。