You don’t have permission to access / on this server的解决方法

最近租用了一台VPS服务器,采用了CentOS服务器,服务器是apache服务器。

出现无权访问的错误的解决方案:文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/error/dont-permission-access/

linux服务器出现Forbidden You don’t have permission to access / on this server的解决方法文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/error/dont-permission-access/

1:httpd.conf设置不正确


然后把deny from all中的deny改成了allow,保存后重起了 apache,问题解决。文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/error/dont-permission-access/

这里定义了默认对网站根的访问权限


换成是:

②:网站目录权限设置不正确

设置网站目录权限

到此问题基本应该都可以解决。文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/error/dont-permission-access/

3、未关闭selinux


申明:以上内容转载于原个人博客,版权归Byrd所有!文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/error/dont-permission-access/ 文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/error/dont-permission-access/

申明:除非注明Byrd's Blog内容均为原创,未经许可禁止转载!详情请阅读版权申明!

 
Byrd
  • by Published onMarch 12, 2014
  • 原文链接:https://note.t4x.org/error/dont-permission-access/
匿名

Comment

Anonymous

Slide puzzle verification.