1.添加虚拟目录节点(httpd.conf)
<IfModule dir_module>
DirectoryIndex index.html index.htm index.php
Alias /站点别名 --"路径"
<Directory 路径>
order allow,deny --配置访问权限
Allow from all
</Directory>
</IfModule>
2.注销documentroot路径
#DocumentRoot ...
3.测试
浏览器中输入:http://locahost/路径/页面
4.设置首页
DirectoryIndex 欢迎页面