I have a Fedora 14 instance on Amazon EC2 and I want to make an http request from that instance to another one in the same amazon security group. When I use wget to make the request it works fine. However, when I use Apache HTTP client running through JBoss 6 I get a
HttpClient ConnectException: Connection refused
JBoss does not run as root but rather as user "jboss". I suspect this is an SELinux issue. I logged in as root and I called
setsebool -P httpd_can_network_connect 1
and
setsebool -P httpd_can_network_relay 1
But still no luck. Any advice would be much appreciated.
Regards