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
worker.worker2.type=ajp13
worker.worker3.type=ajp13
worker.worker4.type=ajp13
worker.loadbalancer.type=lb
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>