4 Replies Latest reply on Nov 23, 2003 10:37 AM by chengccs

    Configuring Apach & mod_jk for Cluster

    jackpot Newbie

      Hi,

      I have a dbout in the configuration of Apache and mod_jk given in the JBossCluster documentation. I am having NT Server, JBoss 3.2.1-Tomcat 4.x, Apache 2 and mod_jk2-2.0.43.dll.

      As per the documentation, you have to modify httpd.conf to include the mod-jk.conf. Since I am having mod_jk2-2.0.43.dll and not mod_jk-2.0.43, what corresponding changes should I make in mod-jk.conf?

      Thankyou,
      JP

        • 1. Re: Configuring Apach & mod_jk for Cluster
          ged Newbie

          Hello.
          This is what I have in my httpd.conf file and it is working:
          LoadModule jk2_module modules/mod_jk2-2.0.43.dll

          Regards,
          Daniel

          • 2. Re: Configuring Apach & mod_jk for Cluster
            Christoph Grimm Newbie

            the mod_j2 dokumentation on the jakarta site is outdated.

            you find a detailed description in the newest source distro of mod_jk2 in directory jk\build\docs\jk2\

            some minimal steps to get it running:

            1. Load the module in httpd.conf
            LoadModule jk2_module modules/mod_jk2-2.0.43.dll

            beware the the module's name is 'jk2_module' and not 'jk_module' as discribed in the latest cluster docu.

            2. create a file named workers2.properties in the apache conf directory with teh following content:

            __

            #shared memory config
            [shm]
            file=logs/shm.file
            size=1048576

            #define a channel
            [channel.socket:localhost:8009]
            tomcatId=localhost:8009

            #define a worker using the channel
            [ajp13:localhost:8009]
            channel=channel.socket:localhost:8009

            #tell the loadbalancer to use the worker
            [lb:0]
            worker=ajp13:localhost:8009

            #map everythingto the default loadbalancer
            [uri:/*]
            __


            there are even simpler ways to configure it, but this way you can take it as a starting point to do loadbalancing.

            to add an other tomcat (or jboss) instance:
            - define the apropriate channel and worker defs
            - add the worker to the loadbalancer

            inthe example above, i have omitted all default settings.

            the settings are specified in the file jk\build\docs\jk2\configtc.html in the source distro.

            • 3. Re: Configuring Apach & mod_jk for Cluster
              Sacha Labourey Master

              > beware the the module's name is 'jk2_module' and not 'jk_module' as discribed in the latest cluster docu.

              Thanks, I will modify the doco.

              cheers,

              sacha

              • 4. Re: Configuring Apach & mod_jk for Cluster
                chengccs Newbie

                >> beware the the module's name is 'jk2_module' and >>not 'jk_module' as discribed in the latest cluster docu.

                > Thanks, I will modify the doco.

                > cheers,

                > sacha

                I just bought the "HTTP Session Clustering" and it seems that the ch.6 still hasn't been updated. So, is there any updated version for me/us to download?

                Thanks,
                Stanley