2 Replies Latest reply on Sep 14, 2004 12:29 PM by Nitin Shreyakar

    AJP Clustering

    Nitin Shreyakar Newbie

      hi All,

      I have configured multiple instances of JBoss3.2.5(tomcat) to work with Apache 2.0, where Apache is the Web proxy for load balancing.

      The problem I'm facing is with Form based Authentication.
      If only a single JBoss server is running OR I have enable only a single worker in workers2.properties, I can successfully login through Apache etc...

      If 2 or more JBoss servers are running, it comes up with error of

      message Invalid direct reference to form login page

      description The request sent by the client was syntactically incorrect (Invalid direct reference to form login page).

      I have attached my workers2.properites below



      Any help would be greatly appreciated,
      Nitin.



      # Sample workers2.properties 08-Feb-2004, located at:
      # http://www.gknw.com/development/apache/docs/win32/mod_jk2/workers2.properties
      #
      [config:]
      info=Defined in mod_jk2.conf.
      # file=${serverRoot}/conf/workers2.properties
      debug=0
      debugEnv=0

      [logger]
      level=debug

      [logger.file:0]
      info=Where to put the mod_jk2 log.
      file=${serverRoot}/logs/jk2.log
      level=debug

      [workerEnv:]
      info=Global server options.
      debug=0
      timing=0
      logger=logger.file:0

      [uriMap:]
      info=Maps the requests to workers.
      debug=0

      [shm:]
      info=This is the Scoreboard.
      debug=0
      disabled=0
      file=${serverRoot}/logs/jk2.shm
      size=1048576


      # -- Channels -- #

      [channel.socket:192.0.0.91:8009]
      tomcatId=192.0.0.91:8009
      info=Forward to a local TCPIP socket.
      debug=0
      disabled=0
      port=8009
      host=192.0.0.91
      nodelay=0
      timeout=60
      graceful=0
      keepalive=0
      group=jboss


      [channel.socket:192.0.0.92:8009]
      tomcatId=192.0.0.92:8009
      info=Forward to a local TCPIP socket.
      debug=0
      disabled=0
      port=8009
      host=192.0.0.92
      nodelay=0
      timeout=60
      graceful=0
      keepalive=0
      group=jboss


      # -- Workers -- #

      [status:]
      info=Status worker, displays runtime information.
      debug=0
      disabled=0

      [ajp13:192.0.0.91:8009]
      info=Ajp13 worker for WebSilver1 using a local channel.
      debug=0
      disabled=0
      graceful=0
      max_connections=0
      channel=channel.socket:192.0.0.91:8009

      [ajp13:192.0.0.92:8009]
      info=Ajp13 worker for WebSilver2 using a local channel.
      debug=0
      disabled=0
      graceful=0
      max_connections=0
      channel=channel.socket:192.0.0.92:8009



      # -- Load Balancer -- #

      [lb:0]
      worker=ajp13:192.0.0.91:8009
      worker=ajp13:192.0.0.92:8009


      # -- URI's see QuickStart Guide -- #

      [uri:/isis-web/*]
      info=Forward to jboss server.
      debug=0
      disabled=0
      group=jboss



      # End of workers2.properties