问题:输入配置的虚拟主机地址localhost,显示You don’t have permission to access this resource. 解决:DirectoryIndex未设置index.php httpd.conf
#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
<IfModule dir_module>
DirectoryIndex index.html index.php
</IfModule>