0 Replies Latest reply on Jul 21, 2014 2:12 AM by Lalit Shaktawat

    404 : Error. While accessing the application.

    Lalit Shaktawat Newbie

      Hi All

       

      I have done some scenario for clustering with load balancing using of JBoss AS ( Standalone-ha.xml ) , Apache Web server.


      pqr is having sample.war and xyz is having hello.war.


      When 4 Servers active that time want to access. www.pqr.com/sample and www.xyz.com/hello

      Showing : 404 error


      When  I stopped pqr JBoss AS. That time I can able to access www.xyz.com/hello


      Please guide me for solution.


      mod_jk.conf

      LoadModule jk_module modules/mod_jk.so
      JkWorkersFile conf/workers.properties
      JkLogFile logs/mod_jk.log
      JkLogLevel info
      JkMount /* loadbalancer

       

       

      workers.properties

      worker.list=worker1, worker2, worker3, worker4, loadbalancer
      worker.worker1.type=ajp13
      worker.worker1.host=172.167.10.25
      worker.worker1.port=8109

       

      worker.worker2.type=ajp13
      worker.worker2.host=172.167.10.25
      worker.worker2.port=8209

       

      worker.worker3.type=ajp13
      worker.worker3.host=172.167.10.25
      worker.worker3.port=8309

       

      worker.worker4.type=ajp13
      worker.worker4.host=172.167.10.25
      worker.worker4.port=8409

       

      worker.loadbalancer.type=lb
      worker.loadbalancer.balance_workers=worker1, worker2, worker3, worker4
      worker.loadbalancer.sticky_session=1

      http-vhosts.conf

       

      <VirtualHost 172.167.10.25:8180

      >

          ServerName www.xyz.com

       

          ErrorLog "logs/abc-error_log"

       

          CustomLog "logs/abc-access_log" common

       

      </VirtualHost>

       

      <VirtualHost 172.167.10.25:8280

      >

          ServerName www.xyz.com

       

          ErrorLog "logs/xyz-error_log"

       

          CustomLog "logs/xyz-access_log" common

       

      </VirtualHost>

       

      <VirtualHost 172.167.10.25:8380

      >

           ServerName www.pqr.com

       

           ErrorLog "logs/pqr-error_log"

       

          CustomLog "logs/pqr-access_log" common

       

      </VirtualHost>

       

      <VirtualHost 172.167.10.25:8480

      >

          ServerName www.pqr.com

       

          ErrorLog "logs/xyz-error_log"

       

          CustomLog "logs/xyz-access_log" common

       

      </VirtualHost>