2 Replies Latest reply: Aug 10, 2012 8:01 AM by Willem Noorduin RSS

mod-cluster: JBoss-EWS versus Redhat httpd

Willem Noorduin Newbie

I have the following architecture configured:


  • A JBoss-AS 7.1.1 cluster, based on standalone-ha.xml profile configuration on a Redhat server


I access the application server via the following Vitrtual Host:


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



# Use name-based virtual hosting.





ServerAdvertise On





    ServerName www.test.nl:80

    ServerAdmin unix@tntpost.nl

    DocumentRoot /var/www/www.test.nlt/data

    ErrorLog logs/www.test.nl-error_log

    CustomLog logs/www.test.nl-access_log combined

    LogLevel debug



    ManagerBalancerName eap6


    <Directory />

                Order deny,allow

                Deny from all

                Allow from all



        KeepAliveTimeout 60

        MaxKeepAliveRequests 0

        Createbalancers 1


        <Location /mcm>

            SetHandler mod_cluster-manager

            Order deny,allow

            Deny from all

            Allow from 192.168



        <Location /appl >

                ProxyPass balancer://eap6/appl stickysession=JSESSIONID|jsessionid nofailover=On

                ProxyPassReverse balancer://eap6/appl





and this works like a charm, so no issues there. JBoss-EWS is a "apache/tomcat5/tomcat6" unzip it and run product from Redhat. So I thought, the same ought to work in your regular httpd. So I did the following:


  1. yum install httpd
  2. Copy the mod_cluster modules from Redhat to /etc/httpd/modules (that is mod_cluster/1.2.1.Final)
  3. Solve the SELinux warning and errors that were there during an initial restart (SELinux is set to permissive for the time being).


When I start httpd with the above virtual host configuration: http://www.test.nl/mcm gives my cluster, but what I try in the PoxyPass / ProxyReverse definition (slashes after the appl, no slashes, mixed slashes), I always get a


[Fri Aug 10 13:14:17 2012] [warn] proxy: No protocol handler was valid for the URL /appl. If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule.


and a Internal Server error.


When I go to http://www.test.nl:8080/appl, it also works, but because al this is on the same Redhat Server (JBoss-AS and Apache), I guess this bypasses mod_cluster alltogether, and is directly knocking onto the JBoss-AS instance. Any thoughts on this ?