Apache(httpd) 报错You don't have permission to access /on this server.

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Apache(httpd) 报错You don't have permission to access /on this server.相关的知识,希望对你有一定的参考价值。

项目需要,增加个访问端口,指向不同目录。

但是一直报“You don‘t have permission to access /on this server.”错误


配置文件语法检查:

#/etc/init.d/httpd configtest 或 apachectl -t

直接输入:/etc/init.d/httpd 会新显示选项

[[email protected] ~]# /etc/init.d/httpd 
Usage: httpd {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}

检查无误:会提示Syntax OK

[[email protected] conf]# apachectl -t
Syntax OK

namei -m /home/tomcat/html 列出这个路径下所有的权限和所属组。

最后经过查看,突然发现,html父目录tomcat是只给了775的权限,给了777权限访问成功。



本文出自 “悟透的杂货铺” 博客,请务必保留此出处http://wutou.blog.51cto.com/615096/1897272

以上是关于Apache(httpd) 报错You don't have permission to access /on this server.的主要内容,如果未能解决你的问题,请参考以下文章

apache2.4 You don‘t have permission to access / on

linux apache Forbidden You don't have permission to access / on this server.

apache 2.4.23 只能本地访问,其他用户不能访问,提示You don't have permission to access

Apache 2.4权限设置( you don't have permission to access / on this server Apache2.4)

安装apache遇到You don’t have permission to access this resource. 原因与解决方法

WampServer出现You don’t have permission to access/on this server提示