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”为您要设置的默认主页文件类型。





