在你apache里有conf这个文件夹,里面有个httpd.conf
在里面找到这段
大概是这样子的
<Directory />
Options FollowSymLinks
DirectoryIndex index.php index.html
AllowOverride All
Order deny,allow
Allow from all
</Directory>
这就是先找 index.php,没有再找index.html。。。
你挨个放就行了
弄完之后重启apache就好了,改之前最好做个备份,要不apache起不来就虾米了
在里面找到这段
大概是这样子的
<Directory />
Options FollowSymLinks
DirectoryIndex index.php index.html
AllowOverride All
Order deny,allow
Allow from all
</Directory>
这就是先找 index.php,没有再找index.html。。。
你挨个放就行了
弄完之后重启apache就好了,改之前最好做个备份,要不apache起不来就虾米了
本文介绍如何在Apache服务器中配置默认首页文件的优先级,通过修改httpd.conf文件内的DirectoryIndex指令来实现对index.php和index.html等首页文件的加载顺序调整。
3687

被折叠的 条评论
为什么被折叠?



