<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    More JBoss-AS 5 clusters and more Apache Virtual Hosts
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/willemnoorduin">Willem Noorduin</a> in <i>Beginner's Corner</i> - <a href="http://community.jboss.org/message/575847#575847">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>: I have configured two JBoss5-AS clusters (cluster1 and cluster2), which are running on two (Linux) servers. Each cluster contains a number of instances</p><p>which i created on basis of the production instance (not the all instance).</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>When I setup a seperate Apache webserver with mod_jk, all is working perfectly. I have been reading about mod_cluster and want to implement it because</p><p>it is more versatile than mod_jk. I have successfully implement this for one named virtual host</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&lt;VirtualHost *:80&gt;</p><p>&#160;&#160; ServerAdmin <a class="jive-link-email-small" href="mailto:me@host.nl">me@host.nl</a></p><p>&#160;&#160; DocumentRoot /content/www.test.nl/data</p><p>&#160;&#160; ServerName <a class="jive-link-external-small" href="http://www.test.nl">www.test.nl</a></p><p>&#160;&#160; ErrorLog logs/test-error_log</p><p>&#160;&#160; CustomLog logs logs/test-access_log combined</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160; &lt;Location /mcm&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; SetHandler mod_cluster_manager</p><p>&#160;&#160; &lt;/Location&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160;&#160; KeepAliveTimeout 60</p><p>&#160;&#160;&#160; MaxKeepAliveRequests 0</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160;&#160; ManagerBalancerName testcluster</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160;&#160; ProxyPass / balancer://testcluster/</p><p>&#160;&#160;&#160; ProxyPassReverse / balancer://testcluster/</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160; AdvertiseFrequency 10</p><p>&#160;&#160; AdvertiseGroup 239.255.100.100:60000</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&lt;/VirtualHost&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>(where there can be a type somewhere, because Paste doesn't seem to work here). The AdvertiseGroup address is the multicast address I started</p><p>cluster1 with (so for example ./run.sh -c cluster-node1 -g cluster1 -u 239.255.100.100 ...). If I start the thing up (JBoss nodes and Apache) and I deploy an application, I can see all this in the <a class="jive-link-external-small" href="http://www.test.nl/mcm">http://www.test.nl/mcm</a> interface (this is in fact the minimal example named in the documentation of mod_cluster)</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>The trouble begins when I try to define a second Apache Virtual Host (for example&#160; <a class="jive-link-external-small" href="http://www.test2.nl">www.test2.nl</a> and try to attach it to cluster2 (the second cluster). First it</p><p> doesn't seem to be possible to have two AdvertiseGroup alements here (my first hunch was to ser this to the multicast address of the second cluster).</p><p>When I try to throw the mod_cluster configuration in one (default) virtual host, it only sees one cluster (either the one behind 239.255.100.100 or (if I comment</p><p>the AdvertiseGroup command), the first that becomes available</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>The reason that I want two seperate clusters (and not all applications in one cluster)&#160; is that we want to administer each cluster independently of each other. Question is thus:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>How to setup a multiple named virtual host configuration for apache, where each virtual host connects to a different JBoss-AS5 cluster. Can some one give</p><p>a concrete example of such a configuration ?</p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/575847#575847">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in Beginner's Corner at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>