0 Replies Latest reply on Nov 8, 2005 8:50 PM by stewchicken

    loadblancing problem with Apache + Mod_jk

    stewchicken

      Dear *,

      Sorry about re-address this issue.

      I have one question regarding loadblancing

      I installed Apache + Mod_jk on Box A
      installed one JBoss on Box B
      installed another JBoss on Box C

      I have two quetiones.
      1)
      Should I use URL http://<ip of Box A>/project
      or URL http://<ip of Box A>:8080/project ?

      2)
      I tried both ,it prompts me the error page 500.
      Should I also cofigurate JBoss's port to 80 ?




      Below are my conf file
      my apache server even doesnot function properly .
      it will return 500 error when i browse http://<apache server ip>
      are there any mistakes coming from my conf file?

      ######## httpd.conf ########
      # Include mod_jk?s
      # specific configuration file
      Include conf/mod-jk.conf


      ########## mod_jk.conf##########
      # Load mod_jk module.
      # Specify the filename of the mod_jk
      # lib you?ve downloaded and installed in the previous section
      LoadModule jk_module modules/mod_jk.so
      # Where to find workers.properties
      JkWorkersFile conf/workers.properties
      # Where to put jk logs
      JkLogFile logs/mod_jk.log
      # Set the jk log level [debug/error/info]
      JkLogLevel info
      # Select the log format
      JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
      # JkOptions indicate to send SSL KEY SIZE,
      JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
      # JkRequestLogFormat set the request format
      JkRequestLogFormat "%w %V %T"
      JkMount /* loadbalancer
      # if you wanted to only load-balance a sub-context, you could
      # map the module differently, such as:
      # JkMount /myContext/* loadbalancer

      #Mount your applications
      JkMount / node1
      JkMount /viewserver node1
      JkMount / node2
      JkMount /viewserver node2
      #########workers.properties############
      # Define list of workers that will be used
      # for mapping requests
      worker.list=loadbalancer,status
      # Define Node1
      worker.node1.port=8009
      worker.node1.host=144.194.192.196
      worker.node1.type=ajp13
      worker.node1.lbfactor=1
      #worker.node1.local_worker=1 (1)
      worker.node1.cachesize=10

      # Define Node2
      worker.node2.port=8009
      worker.node2.host=144.194.192.203
      worker.node2.type=ajp13
      worker.node2.lbfactor=1
      #worker.node2.local_worker=1 (1)
      worker.node2.cachesize=10

      # Load-balancing behaviour
      worker.loadbalancer.type=lb
      worker.loadbalancer.balance_workers=node1, node2
      worker.loadbalancer.sticky_session=1
      #worker.loadbalancer.local_worker_only=1
      # Comment local_worker to do load balancing and fail over, if its not commented out its failsafe only
      worker.list=loadbalancer
      ############uriworkermap.properties#################
      #

      # Mount the Servlet context to the ajp13 worker
      /jmx-console=loadbalancer
      /jmx-console/*=loadbalancer