您的位置:首页 > 其它

disabled connection for (xx.xx.98.34)

2014-12-11 15:21 183 查看
原文:http://blog.sina.com.cn/s/blog_40ce02d70102uw1m.html
apache虚拟主机反向代理错误proxy:HTTP: disabled connection for (xx.xx.x (2014-06-27 16:17:30)
标签: apache linux
Apache ProxyPass出现503
ServiceTemporarily Unavailable
错误的解决方案
在Redhat5 Linux上配置Apache虚拟主机反向代理,将不同的二级域名转发到各自web app的地址上去

发现当访问的时候发现不可访问,出现503错误:

Service Temporarily Unavailable
The server is temporarily unable to serviceyour request due to maintenance downtime or capacity problems. Please try againlater.
Apache/2.2.15 (CentOS) Server atwww.hacpyzlglb.net Port 80

查看cpache log:
[Fri Jun 27 16:08:32 2014] [error]ap_proxy_connect_backend disabling worker for (xx.xx.98.34)
[Fri Jun 27 16:12:23 2014] [error](13)Permission denied: proxy: HTTP: attempt to connect to xx.xx.98.34:1080(xx.xx.98.34) failed
[Fri Jun 27 16:12:23 2014] [error]ap_proxy_connect_backend disabling worker for (xx.xx.98.34)
[Fri Jun 27 16:12:23 2014] [error] proxy:HTTP: disabled connection for (xx.xx.98.34)
执行
[root@log]#/usr/sbin/getsebool -a |grep httpd_can_network_connect
httpd_can_network_connect --> off
httpd_can_network_connect_cobbler -->off
httpd_can_network_connect_db --> off

于是尝试解决方案:
我们需要将httpd_can_network_connect设置为on:
[root@ logs]# /usr/sbin/setsebool -P httpd_can_network_connect=1
[root@ logs]# /usr/sbin/getsebool -a |grep httpd_can_network_connect
httpd_can_network_connect --> on
重新访问,页面果然可以访问了。
另外直接关掉SELinux也是可以解决这个问题的:
修改/etc/selinux/config 然后重启:
SELINUX=disabled 或者实时生效的方式:
[root@ var]# /usr/sbin/setenforce 0

原文:http://blog.sina.com.cn/s/blog_40ce02d70102uw1m.html
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  ServiceTemporarily U