Amazon Linux AMI Test Page


Amazon Linux にパッケージのApacheをインストールしたての状態で表示されるテストページ。



You may now add content to the directory /var/www/html/.

インストールしたての設定では /var/www/html がドキュメントルートなので、
そこに index.html でも置けば出なくなる。
DocumentRoot を変更したり VirtualHost で別に設定している場合は、そちらに。

To prevent this page from ever being used, follow the instructions in the /etc/httpd/conf.d/welcome.conf


いついかなる時でもこのページが使われないようにするには /etc/httpd/conf.d/welcome.conf 内の指示に従いなさい。

とのことなので、/etc/httpd/conf.d/welcome.conf を見ると、

To disable the Welcom page, comment out all the line below.


Welcomページを無効にするには、以下の全ての行をコメントにしなさい。

とある。

のブロックをコメントにして、httpd を再起動すると、Test Page が出なくなる。
うろ覚えだが、替わりに 403 Forbidden の画面が出る。


/etc/httpd/conf.d/welcome.conf ファイルの削除でも同様の効果があるが、
httpd パッケージをアップデートすると復活してしまうかもしれない。