apache配置默认主页

来源:小凡日期:2022年4月19日

1、首先进入Apache的conf目录,在httpd.conf文件中查找 # Virtual hosts

# Include conf/extra/httpd-vhosts.conf 前面的#去掉;

2、打开Apache2.2\conf\extra\httpd-vhosts.conf文件,在末尾加上以下代码:

<Directory "D:/www">
Options  Indexes FollowSymLinks Includes
AllowOverride None
Order allow,deny
Allow from all
DirectoryIndex index.html index.php
</Directory>

备注:此处“index.html index.php”为您要设置的默认主页文件类型。

相关文章
微信咨询微信咨询
二维码
微信扫码 立即咨询
销售热线咨询热线
15202181997
立即咨询立即咨询