![JBoss 6 之前的 Apache -> 一些代理错误](https://linux22.com/image/614900/JBoss%206%20%E4%B9%8B%E5%89%8D%E7%9A%84%20Apache%20-%3E%20%E4%B8%80%E4%BA%9B%E4%BB%A3%E7%90%86%E9%94%99%E8%AF%AF.png)
这是我的 Apache 配置:
<IfDefine TOMCAT>
<IfModule mod_ssl.c>
<IfModule mod_proxy_http.c>
ProxyTimeout 300
SetEnv force-proxy-request-1.0 1
SetEnv proxy-nokeepalive 1
ProxyPass /unproxied/ !
ProxyPass /error/ !
ProxyPass / http://127.0.0.1:8080/ retry=0 ttl=600
ProxyPassReverse / http://127.0.0.1:8080/
</IfModule>
</IfModule> </IfDefine>
这是我的 JBoss 连接器配置:
<Connector address = "${jboss.bind.address}" port = "8080" maxThreads = "200" acceptCount = "100" scheme = "https" secure = "true" proxyName = "mydomain.net" proxyPort = "443" xpoweredBy = "true" connectionTimeout = "600000" compression = "on" enableLookups = "false" maxKeepAliveRequests = "-1" maxHttpHeaderSize = "50000" />
在我的 Apache error.log 中:
[Tue Jul 16 09:54:54 2013] [error] ap_proxy_connect_backend disabling worker for (127.0.0.1)
[Tue Jul 16 09:57:35 2013] [error] (111)Connection refused: proxy: HTTP: attempt to connect to 127.0.0.1:8080 (127.0.0.1) failed
[编辑] 这些错误每天出现大约 1000 次,但我的 Web 应用程序似乎按预期运行。
可能是什么问题呢 ?
谢谢,
鲍勃!
答案1
SELinux 是否已启用并正在执行?
如果是这样,您需要setsebool httpd_can_network_connect 1
允许 Apache 与 JBoss 建立连接。