// 点击Apache下面的httpd.conf
修改:
# Require all granted
# onlineoffline tag - don't remove
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
Allow from ::1
Allow from localhost
</Directory>
里面: Deny from all 为 Allow from all