apache2.4配置根目录文件在
/etc/apache2/sites-available/000-default.conf
默认是


默认主页的配置在
/etc/apache2/mods-available/dir.conf
可以为如下格式:index.html index.cgi index.pl index.php index.xhtml index.htm
可以修改为 ***.html等
但是奇怪的是不能同时有两个index文件在目录下,之前我在根目录下既有index.html 又有 index.php,在浏览器输入127.0.0.1报404了,删除index.html后,正常显示了index.php的内容
参考http://httpd.apache.org/docs/2.4/