トップページ -> サーバ・PC関連 -> httpd.conf設定(初期表示ファイル名)

httpd.conf設定(初期表示ファイル名)

初期表示ファイル名

Apache設定ファイルの編集
# vi /etc/httpd/conf/httpd.conf

~省略~

DirectoryIndex index.html index.html.var
 ↓
DirectoryIndex index.html index.html.var info.php

~省略~
Apacheのサービスを再起動します。
# service httpd restart
※ http://localhost/ の初期表示画面が、info.phpを自動参照する。