安装了WampServer64环境创建了虚拟机,访问出现403提示。
Forbidden
You don’t have permission to access / on this server.
Apache/2.4.9 (Win64) PHP/5.5.12 Server at meihan Port 80
搞了半天原来httpd-vhosts.conf中并没有限制访问的问题。于是查看apache的主配置文件httpd.conf,找到了以下限制访问的内容:
<Directory />
AllowOverride none
#Require all denied
Options FollowSymLinks
Order deny,allow
allow from all
</Directory>
修改如上,重启apache搞定。