配置方法如下:
1、首先需要打开Apache的配置文件httpd.conf文件,使用一般的编辑器或者记事本打开均可。
2、找到或者搜索到如下字段:
<IfModule dir_module>
DirectoryIndex index.php index.php3 index.html index.htm
</IfModule>
3、将自己需要设置的默认首页的名称写到后面保存即可,如
IfModule dir_module>
DirectoryIndex index.php index.php3 index.html index.htm 123.html
</IfModule>
则123.html则就成为Apache的默认首页之一,但是优先级比前面的低,优先级和顺序有关。
apache中怎么配置网站的默认首页
免责声明:文章转载自《apache中怎么配置网站的默认首页》仅用于学习参考。如对内容有疑问,请及时联系本站处理。
上篇你的灯亮着吗读后感三FreeBSD--如何最有效率的安装软件下篇
宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=