最近做apache和tomcat集群部署的工作,遇到这个问题,费了好大劲。下面总结一下:
1. 本机可以访问,其他机器无法访问
→查看防火墙设置和sellinux。
2.本机也无法访问
(1)有可能是因为虚拟目录权限设置。
→找到httpd.conf文件,找到“Deny from all”,修改为“Allow from all”
(2)也有可能是用户和组的权限不够。
→chown -R apache:apache “your file path”
最近做apache和tomcat集群部署的工作,遇到这个问题,费了好大劲。下面总结一下:
1. 本机可以访问,其他机器无法访问
→查看防火墙设置和sellinux。
2.本机也无法访问
(1)有可能是因为虚拟目录权限设置。
→找到httpd.conf文件,找到“Deny from all”,修改为“Allow from all”
(2)也有可能是用户和组的权限不够。
→chown -R apache:apache “your file path”