修改默认的首页文件
直接修改apache服务器的配置文件./conf/httpd.conf中的DirectoryIndex,如:(项目web以index.php为首页)
<IfModule dir_module>DirectoryIndex index.html index.php</IfModule>
网站的根目录
直接修改apache服务器的配置文件./conf/httpd.conf中的DocumentRoot和Directory,如:
DocumentRoot "/usr/local/apache/htdocs/web"<Directory "/usr/local/apache/htdocs/web">