On 06/25/2012 10:07 AM, Christophe Pythoud wrote:


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.)


Can you check the logs on the LB and the backend servers?

The default app-default.xml is in "classpath:META-INF/caucho/app-default.xml", but it will work if you do have an app-default.xml in the conf directory.

You might also add the <development-mode-error-page/> to the <cluster-default>. That will give a better error message. (It's disabled by default for security.)

Otherwise, that configuration looks fine to me.

-- Scott

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

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

Reply via email to