1 Reply Latest reply on Jun 23, 2008 5:10 PM by Jon Hall

    Virtual Hosts

    Jon Hall Newbie

      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/

      created a war:

      in the war I have my WEB-INF/jboss-web.xml with:

      I defined my ./jboss-web.deployer/server.xml with the host:
      <Host name="domain.com" autoDeploy="false" deployOnStartup="false" deployXML="false">
       <Valve className="org.apache.catalina.valves.AccessLogValve"
       prefix="domain.com" suffix=".log" pattern="common"
       <DefaultContext cookies="true" crossContext="true" override="true"/>

      and when i try to access my app from www.domain.com my apache log reads:
      [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)

      am I missing something, if i change the apache directive from:
      ProxyPass / http://www.domain.com:8080/
      ProxyPass / http://localhost:8080/
      I get the default ROOT.war context as expected which shows my JBOSS default page, so I know jboss is running and accepting proxy requests from apache, but trying to define my own context seems to cause an issue.

      Any Ideas? (total noob to jboss)

        • 1. Re: Virtual Hosts
          Jon Hall Newbie

          To answer my own question, i had to stop the jboss server and run the run.sh script with -b 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?