So I am trying to deploy a webapp on jboss and can't seem to figure out whats going on (I have switched my actual domain name with domain.com:
I have apache2 running in the front, jboss 4.2.2.
I setup my apache directives with the following:
ServerName www.domain.com ProxyPass / http://www.domain.com:8080/ ProxyPassReverse / http://www.domain.com:8080/
<jboss-web> <context-root>/</context-root> <virtual-host>domain.com</virtual-host> </jboss-web>
<Host name="domain.com" autoDeploy="false" deployOnStartup="false" deployXML="false"> <Alias>www.domain.com</Alias> <Alias>domain.com</Alias> <Valve className="org.apache.catalina.valves.AccessLogValve" prefix="domain.com" suffix=".log" pattern="common" directory="${jboss.server.home.dir}/log"/> <DefaultContext cookies="true" crossContext="true" override="true"/> </Host>
[Sun Jun 22 13:05:39 2008] [error] (111)Connection refused: proxy: HTTP: attempt to connect to xxx.xxx.xxx.xxx:8080 (www.domain.com) failed [Sun Jun 22 13:05:39 2008] [error] ap_proxy_connect_backend disabling worker for (www.domain.com) [Sun Jun 22 13:05:41 2008] [error] proxy: HTTP: disabled connection for (www.domain.com) [Sun Jun 22 13:05:42 2008] [error] proxy: HTTP: disabled connection for (www.domain.com)
To answer my own question, i had to stop the jboss server and run the run.sh script with -b 0.0.0.0 option
Now I realize I don't want to run this in production due to security reasons, how would I want to resolve this issue in a production environment?
Thanks!