Apache2.4 Forbidden You don't have permission to access / on this server.
程序员文章站
2022-03-15 22:34:54
...
Apche :2.4.23
系统:windows 10
集成环境:WAMP 64位
安装WAMP在windows 10上 ,在127.0.0.1*问网页无压力
在其他IP下出现:Forbidden You don't have permission to access / on this server. 403错误
这个是服务器权限配置问题:
打开Apche 目录,例如:d:\wamp64\bin\apache\apache2.4.23\conf\extra
找到httpd-vhosts.conf文件:
# Virtual Hosts
#
<VirtualHost *:80>
ServerName localhost
DocumentRoot d:/wamp64/www
<Directory "d:/wamp64/www/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
#
把Require local 改成 Require all granted
改好后:
# Virtual Hosts
#
<VirtualHost *:80>
ServerName localhost
DocumentRoot d:/wamp64/www
<Directory "d:/wamp64/www/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
#
建议一步一步手动配置apche,会对服务器有更了解。
参考资料: https://blog.csdn.net/yt3dklts/article/details/50709222
推荐阅读
-
对于搭建网站中出现“You don't have permission to access this resource.”错误提示的解决思路
-
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 thi_PHP教程
-
apache出现You don't have permission to access / on thi_PHP教程
-
Apache出现 You don't have permission to access /phpmya
-
wamp不能使用phpmyadmin,提示“You don't have permission
-
You don’t have permission to access /index.php on.