手抄报 安全手抄报 手抄报内容 手抄报图片 英语手抄报 清明节手抄报 节约用水手抄报

配置Apache的配置文件

时间:2024-10-13 09:41:20

1、打开电脑,按“ctrl+R”或者是点击电脑左下角的“开始”按钮,打开全部程序,找到AppServer软件。

配置Apache的配置文件

2、按照下图所示,点击“钽吟篑瑜AppServ”,打开菜单以后,点击"Configuration Server",再点击“Apache Edit the httpd.conf Configuration File”

配置Apache的配置文件

3、打开APache的配置文件以后,按下“ctrl+F”,搜索“index.html”,会搜到如下图所示的结果。

配置Apache的配置文件

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。

© 手抄报圈