解决:You don't have permission to access / on this server.
AI 摘要salmon-ai
本文详细解析了在本地虚拟机部署 PHP 项目后,Apache 访问站点根路径时出现 “You don't have permission to access / on this server” 的原因与处理
问题
最近在本地的虚拟机上跑一个 php 项目,打包后放在 Apache 中报错:

我在虚拟机上用 localhost 和 ip 都可以访问到页面,而我的主机不可以访问到,并且出现提示 You don't have permission to access / on this server。
解决
将 httpd.conf 文件中 Require local 或者 Require all denied 换成 Require all granted 即可,如下:

评论
0 条—
还没有评论,来说第一句