Here under my Apache configuration:
<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>
Here my JBoss connector configuration:
<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" />
In my 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
[EDIT] These errors appear around 1000 times per day but my web application seems to work as expected.
What could be the problem ?
Thanks,
Bob !
Best Answer
Is SELinux enabled and enforcing?
If so, you'll need to
setsebool httpd_can_network_connect 1
to allow Apache to make connections to JBoss.