访问 Apache 服务器提示(Forbidden You don't have permission to access / on this server 403)
程序员文章站
2022-05-29 22:25:46
...
找到 apache 配置文件 "httpd.conf"
找到如下代码块:
<Directory />
AllowOverride All
Require all denied
</Directory>
内容可能如下: //内容可能存在差异
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>
需要修改:
Deny from all //拒绝了一切连接
或
Require all denied //拒绝所有访问
修改如下:
Require all denied => Require all granted
Deny from all => Allow from all
推荐阅读
-
PHP错误:Forbidden You don't have permission to access / on this server
-
apache 提示You don't have permission to access /test.php on
-
You don't have permission to access / on this server,Forbidden
-
CentOS7.0下安装Apache2.4.20版本,安装完成之后,报 You don't have permission to access / on this server.
-
wamp不能使用phpmyadmin,提示“You don't have permission to access /phpmyadmin/ on this server.”...
-
Apache启动后出现You don't have permission to access on this server的解决办法
-
PHP错误:Forbidden You don't have permission to access / on this server.,permissiontoaccess
-
访问 Apache 服务器提示(Forbidden You don't have permission to access / on this server 403)
-
403 Forbidden You don't have permission to access / on this server
-
PHP错误:Forbidden You don't have permission to access / on this server.,permissiontoaccess_PHP教程