1、打开电脑,按“ctrl+R”或者是点击电脑左下角的“开始”按钮,打开全部程序,找到AppServer软件。
2、按照下图所示,点击“钽吟篑瑜AppServ”,打开菜单以后,点击"Configuration Server",再点击“Apache Edit the httpd.conf Configuration File”
3、打开APache的配置文件以后,按下“ctrl+F”,搜索“index.html”,会搜到如下图所示的结果。
4、## DirectoryIndex: sets the file that Apache will serve if a director烤恤鹇灭y# is requested.#<IfModule dir_module> DirectoryIndex index.html index.php index.htm</IfModule>这段话的意思就是:APache运行时,如果没有输入完整的链接,APache就默认先执行index.html,如果没有index.html,就默认执行index.php。
5、理解了上面所说的以后,我们就可以修改配置文件了,使APache默认运行index.html还是默认运行index.php。记得,修改配置文件以后,要重启一下APache。