<Directory />
Options Indexes FollowSymLinks
AllowOverride None
</Directory>
更改http.conf中directory的权限,防止因为权限问题访问不了网页的情况出现
serverRoot "E:\Apache24"
#apache 文件所在位置
Listen 127.0.0.1:8080
#选择接听的端口
<VirtualHost 127.0.0.1:8080> DocumentRoot "E:\Apache24\WebSite"
ServerName www.a.com#网页所在路径
#绑定的域名 </VirtualHost>
结果: