disabled connection for (xx.xx.98.34)

原文:http://blog.sina.com.cn/s/blog_40ce02d70102uw1m.htmlhtml

apache虛擬主機反向代理錯誤proxy:HTTP: disabled connection for (xx.xx.x (2014-06-27 16:17:30)linux

標籤: apache linux      web

Apache ProxyPass出現503 apache

ServiceTemporarily Unavailablebash

錯誤的解決方案app

Redhat5 Linux上配置Apache虛擬主機反向代理,將不一樣的二級域名轉發到各自web app的地址上去ide

 

發現當訪問的時候發現不可訪問,出現503錯誤:spa

 

Service Temporarily Unavailable.net

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

相關文章
相關標籤/搜索