1、如下图打开Apache 的httpd.conf配置文件
2、找到如下内容,大概240行,更改为下面这样,重启wamp即可。
#
# Deny access to the entirety of your server's filesystem. You must
# explicitly permit access to web content directories in other
# <Directory> blocks below.
#
<Directory />
# AllowOverride none
# Require all denied
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>