袁堂庆吧 关注:12贴子:1,174
  • 0回复贴,共1

wamp安装时出现You don't have permission to access / on this

只看楼主收藏回复

本地搭建wamp,输入http://127.0.0.1访问正常,当输入http://localhost/,apache出现You don't have permission to access/on this server.的提示
找到httpd.conf,用记事本打开httpd.conf,然后将
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>
改为
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Allow from all
</Directory>
还有
# onlineoffline tag - don't remove
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
</Directory>
将Deny from all 改为:Allow from all ,然后重新启动所有服务


IP属地:上海1楼2017-03-26 16:25回复