步骤1:添加下面的语句
#配置虚拟目录
<IfModule dir_module>
# directory 相当于是欢迎页面
DirectoryIndex index.html index.html index.php
#你的站点别名
Alias /web "E:/web"
<Directory "e:/web">
#这是访问权限设置----
AllowOverride None
Require all granted
</Directory>
</IfModule>
步骤2:注释掉下面的语句
#DocumentRoot "${SRVROOT}/htdocs"