Forbidden:You don't have permission to access /index.php on this server

淡淡的烟草味﹌ 2021-09-26 00:30 402阅读 0赞

当访问虚拟机或者其他机器上的web程序的时候遇到

You don’t have permission to access /index.php on this server的错误

只需要修改一下httpd.conf文件即可

1,



AllowOverride none
Require all denied

修改成:


Options FollowSymLinks
AllowOverride None
Order deny,allow
Allow from all
Satisfy all

2,


Options Indexes FollowSymLinks
AllowOverride all
Require local

修改成:


Options Indexes FollowSymLinks
AllowOverride all
Order Deny,Allow
Allow from all

发表评论

表情:
评论列表 (有 0 条评论,402人围观)

还没有评论,来说两句吧...

相关阅读