#虚拟目录配置
<IfModule dir_module>
DirectoryIndex index.html index.htm index.php
Alias /htdocs "E:/htdocs"
<Directory E:/htdocs>
Order allow,deny
Allow from all
</Directory>
</IfModule>
#然后再注销DocumentRoot
转载于:https://www.cnblogs.com/Fly-Wind/p/4378836.html