0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

apacheでテストページの表示に失敗した際に試してみてほしいこと

Last updated at Posted at 2021-12-13

はじめに

テストページにアクセスしようとしたらこんなのが表示された人は試してみてください

image.png

修正点

こうなっているひとはエラーになる可能性があります

/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で定義しました。

0
0
0

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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?