1 Reply Latest reply on Jul 6, 2016 6:25 PM by Vatsan Madabushi

    Placing webserver in front of Jboss AS 5.1

    Mohammed Fazil Shahid Newbie

      Hi,

       

      I Am new to Jboss , I have my application running on jboss 5.1, hence I need to have webserver configured to route request to AS.

       

      Notes:

      I have downloaded open source Apache,

      Using mod_jk connection

      Attaching htttpd.conf , mod_jk, uriworker.properties, worker.properties file, server.xml

       

      Please help!

        • 1. Re: Placing webserver in front of Jboss AS 5.1
          Vatsan Madabushi Novice

          You will need to add th efollwogin modules to httpd.conf:

          LoadModule proxy_module ../../modules/mod_proxy.so

          LoadModule proxy_ajp_module ../../modules/mod_proxy_ajp.so

          LoadModule proxy_http_module ../../modules/mod_proxy_http.so

          LoadModule proxy_balancer_module ../../modules/mod_proxy_balancer.so

          LoadModule lbmethod_byrequests_module ../../modules/mod_lbmethod_byrequests.so

           

          and then add the below section

          <Proxy balancer://mycluster>
                  BalancerMember ajp://localhost:9991/
          #        BalancerMember ajp://localhost:9992
          </Proxy>

          <VirtualHost *:<your port #>>
                  ProxyPass / balancer://mycluster/
                  ProxyPassReverse / balancer://mycluster/
          </VirtualHost>

           

          This will route any traffic coming in <your port#> to ports 9991 and 9992 in your localhost server in a round robin method.