6 Replies Latest reply on Dec 14, 2010 3:24 PM by August Simonelli

    mod_cluster and multiple namevirtualhosts

    August Simonelli Newbie

      Hello,

       

      I'm new to mod_cluster and looking for some basic advice on the following. I'm using JBoss EAP 5.1 (ie .com offering) and mod_clsuter 1.0.4 (also from red hat).

       

      mod_cluster installed as per the quikc start guide. using a proxyList and not multicast (ie -Djboss.modcluster.proxyList=10.68.15.8:6666). my cluster status page sees the node and deployed contexts (i put tomcat's sample.war in there). I can get there fine vie the server ip (ie http://10.68.15.8/sample/ - on port 80). The configs on apache are:

       

      LoadModule slotmem_module modules/mod_slotmem.so
      LoadModule manager_module modules/mod_manager.so
      LoadModule proxy_cluster_module modules/mod_proxy_cluster.so
      LoadModule advertise_module modules/mod_advertise.so

       

      Listen 10.68.15.8:6666
      <VirtualHost 10.68.15.8:6666>

       

          <Directory />
              Order deny,allow
              allow from all
          </Directory>

       

          KeepAliveTimeout 60
          MaxKeepAliveRequests 0

       

          ManagerBalancerName mycluster
          AdvertiseFrequency 5

       

          CreateBalancers 0

       

       

       

      </VirtualHost>

       

      <Location /mod_cluster-manager>
          SetHandler mod_cluster-manager
          Order deny,allow
          Allow from all
      </Location>

       

      Now i'd like to access that via a virtual host so i do:

       

      <VirtualHost *:80>

       

          ServerAdmin webmaster@dummy-host.example.com
          DocumentRoot /var/www/html/jbsample/
          ServerName clusterbalance.com
          ErrorLog logs/dummy-host.example.com-error_log
          CustomLog logs/dummy-host.example.com-access_log common

       

      </VirtualHost>

       

      which means clusterbalance.com/sample should be the url ... but that doesn't work and throws:

       

      [Mon Nov 15 16:07:51 2010] [warn] proxy: No protocol handler was valid for the URL /sample/. If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule.

       

      which tells me i need more mod_cluster (proxy config).

       

      So i added:

       

      ProxyPass / balancer://mycluster/

       

      but that gives me:

       

      [Mon Nov 15 16:08:59 2010] [error] proxy: CLUSTER: (balancer://mycluster). All workers are in error state

       

      so i tried the various CreateBalancers options (0,1,2) but they all result in:

       

      [Mon Nov 15 16:10:27 2010] [error] proxy: CLUSTER: (balancer://mycluster). All workers are in error state

       

      So i missing something fundamental about how to tie the virtual into the backend.

       

      Can anyone help? I'm RTFM'ing but, sadly, still a little cnofused.

       

      I hope to have MANY virtuals on one apache tied into multiple different jboss instances behind them.

       

      Thanks,

       

      August