Hi guys,

 

I'm trying to configure Resin 4 to run on a single server, with a couple
virtual hosts. Each virtual host should use its own JVM.

 

I have a similar setup running flawlessly with Resin 3, but I seem to be at
the end of my wits with Resin 4.

 

So could anyone on this list be kind enough to point to me what's wrong or
missing in the config file below ?

 

(When I try to access www1.test.com or www2.test.com, I get "Server Error.
The server is temporarily unavailable due to an internal error. Please
notify the system administrator of this problem."  If I type the IP address
of the server, I get a 404, as expected.)

 

Any help would be greatly appreciated.

 

Christophe

 

 

<resin xmlns="http://caucho.com/ns/resin";

     xmlns:resin="urn:java:com.caucho.resin">

     

  <cluster-default>

    <resin:import path="${__DIR__}/app-default.xml"/>

    

    <host-default>

      <web-app-deploy path="webapps"

           expand-preserve-fileset="WEB-INF/work/**"/>

    </host-default>

  </cluster-default>

 

  <cluster id="A">

    <server id="A" address="127.0.0.1" port="6801"/>

 

    <host id="">

  

      <root-directory>C:/resin/hosts/A</root-directory>

      <web-app id="/" root-directory="htdocs"/>

    </host>

  </cluster>

 

  <cluster id="B">

    <server id="B" address="127.0.0.1" port="6802"/>

 

    <host id="">

  

      <root-directory>C:/resin/hosts/B</root-directory>

      <web-app id="/" root-directory="htdocs"/>

 

    </host>

  </cluster>

     

  <cluster id="web-tier">

    <server-default>

      <http port="80"/>

    </server-default>

 

    <server id="web" address="127.0.0.1" port="6800"/>

 

    <host id="www1.test.com">

      <web-app id="/">

 

        <resin:LoadBalance regexp="" cluster="A"/>

 

      </web-app>

    </host>

 

    <host id="www2.test.com">

      <web-app id="/">

 

        <resin:LoadBalance regexp="" cluster="B"/>

 

      </web-app>

    </host>

  </cluster>

 

</resin>

_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

Reply via email to