[error] proxy: HTTP: disabled connection for (127.0.0.1)解决方法
在应用系统运维过程中,一般都会使用httpd来做前端的反向代理程序,当后端的tomcat或者Weblogic出现无法访问时,此时,httpd会报[error] proxy: HTTP: disabled connection for (127.0.0.1)错误。
出现此错误,我们可以尝试重新启动后端的tomcat,但通过域名依然无法访问,出现503错误。此时,可以尝试修改httpd的配置文件,并且重新httpd服务。
一般的配置文件内容:
ServerName sub.example.com ProxyPass / http://localhost:8000 ProxyPassReverse / http://localhost:8000 ProxyPreserveHost on LogLevel debug
修改上述的配置文件内容,在配置文件中将反向代理地址中加入retry=0,如下:
ProxyPass / http://localhost:8000 retry=0
修改完毕之后,重启apache httpd程序,再次访问域名,应用恢复正常。
『—ENDOF—』