1.打开apache 配置文件 httpd.conf
2.找到 DocumentRoot ,修改如下:
DocumentRoot "E:\amp\website"
如果是apache2.4 则如下配置
<Directory "E:\amp\website">
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
如果是apache2.2 则是如下配置
<Directory "E:\amp\website">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
实际配置效果如下图