Author:KillerLegend
Date:2014.5.27
From:http://blog.csdn.net/killerlegend/article/details/27195445
------------------------------------------------------------------分割线-----------------------------------------------------------------------------
在httpd.conf文件中,有如下配置(注:舍去httpd.conf文件的注释内容)Listen 80
ServerName localhost
<Directory />
AllowOverride none
Require all denied
</Directory>
DocumentRoot "E:"
<Directory "E:/Workshop/Apache">
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
(测试之前最好清理一下浏览器缓存),那么在浏览器中输入http://localhost/Workshop/Apache/ 便可以访问E:/Workshop/Apache下的所有文件,注意此处的根目录是E:,但是上面的那个Direct