I have the following configuration:
> one httpd server (which will act as a load balancer ) downloaded the one given at the above website.
(ip address of the machine : 192.168.1.102 ))
> 2 jboss application servers(version 6.0.0.M1)
(IP addresses of the machines :: 192.168.1.101 and 192.168.1.103)
I was following the quick start guide but cannot get the whole set up running.
Added the below config to my httpd.conf (all the other things are same as before. After these changes <Directory /> gets defined twice in httpd.conf, so i changed "deny from all" -to-> "deny from none" and added "allow from all" in that directive)
LoadModule proxy_module /opt/jboss/httpd/lib/httpd/modules/mod_proxy.so
LoadModule proxy_ajp_module /opt/jboss/httpd/lib/httpd/modules/mod_proxy_ajp.so
LoadModule slotmem_module /opt/jboss/httpd/lib/httpd/modules/mod_slotmem.so
LoadModule manager_module /opt/jboss/httpd/lib/httpd/modules/mod_manager.so
LoadModule proxy_cluster_module /opt/jboss/httpd/lib/httpd/modules/mod_proxy_cluster.so
LoadModule advertise_module /opt/jboss/httpd/lib/httpd/modules/mod_advertise.so
Only needed to enable this line for <depends>ModClusterListener</depends> for jboss-6 in $JBOSS_HOME/server/all/deploy/jbossweb.sar/META-INF/jboss-beans.xml. Rest of the configs where enabled by default. (in the quick start guide the name given is ModClusterService but in the config files of jboss 6 it is ModClusterListener, dont know the difference between the two)
I did not configure the jvm route as it is not necessary and i just want to get the things running initially.
I start the httpd server using ./apachectl start. I start the jboss servers after that.
When i do http://192.168.1.102:9999 on my localhost i should expect to see the jboss main page but i get the "IT WORKS" page in the apache httpd server (am i wrong here...??). if i deploy some application in the jboss and then try to access it as http://192.168.1.102:9999/app-name/ (where app-name is the context root) i get page requested not found exception (404).
Doesnt the quick start guide enable us to redirect all the requests from the httpd to the jboss servers in the above scenario..??
I dont know where I am going wrong. Isnt this the way it should have worked.
This is my httpd error log btw:
[Sun Mar 28 16:05:46 2010] [warn] module manager_module is already loaded, skipping
[Sun Mar 28 16:05:46 2010] [warn] module proxy_cluster_module is already loaded, skipping
[Sun Mar 28 16:05:46 2010] [warn] module advertise_module is already loaded, skipping
[Sun Mar 28 16:05:46 2010] [notice] Digest: generating secret for digest authentication ...
[Sun Mar 28 16:05:46 2010] [notice] Digest: done
[Sun Mar 28 16:05:47 2010] [warn] No JkLogFile defined in httpd.conf. Using default /opt/jboss/httpd/httpd/logs/mod_jk.log
[Sun Mar 28 16:05:47 2010] [warn] No JkShmFile defined in httpd.conf. Using default /opt/jboss/httpd/httpd/logs/jk-runtime-status
[Sun Mar 28 16:05:47 2010] [notice] Advertise initialized for process 20252
[Sun Mar 28 16:05:47 2010] [notice] Apache/2.2.13 (Unix) mod_cluster/1.1.x mod_ssl/2.2.13 OpenSSL/0.9.8k DAV/2 mod_jk/1.2.27 configured -- resuming normal operations
[Sun Mar 28 16:10:18 2010] [error] [client 192.168.1.102] File does not exist: /opt/jboss/httpd/htdocs/htdocs/app-name
I even tried to do the above with httpd and Jboss all running on my localhost but i was not able to configure it.
I have also seen people using
Deny from all
Allow from 127.0.0.1
is this an application and what does it do and how should I configure it?
Kindly let me know your inputs and comments.