<IfModule dir_module>
DirectoryIndex index.html index.htm index.phpAlias /myblog "F:/myblog"
<Directory d:/myblog>
order allow,deny
Allow from all
</Directory>
</IfModule>
#配置虚拟目录
DirectoryIndex index.html index.htm index.php //相当于配置欢迎页
Alias /myblog "F:/myblog" //站点别名 和 实际映射的地址
<Directory d:/myblog> //权限设置
order allow,deny
Allow from all
</Directory>
如何添加虚拟目录
1.添加虚拟目录的节点
<IfModule dir_module>
DirectoryIndex index.html index.htm index.phpAlias /myblog "F:/myblog"
<Directory d:/myblog>
order allow,deny //先允许所有的,在拒绝所有的
Allow from all //在允许所有的
</Directory>
</IfModule>
2.修改server主目录,将以下这句话注释DocumentRoot "E:/Damaruanjian/amp/web/xampp/htdocs"