-
1. Re: Apache / Tomcat6 + mod_cluster configuration
mbabacek Jun 29, 2011 4:02 AM (in response to willemnoorduin)Hi,
You cannot use the cluster commands, so something like:
blank line
will not work.What do you mean by that statement? Do you have an empty Httpd configuration?
Can someone tell me what commands I must use to connect my Apache Virtual Host via mod_cluster to Tomcat 6.
Do you mean httpd config by "commands" in the aforementioned statement?
THX for clarification.
-
2. Re: Apache / Tomcat6 + mod_cluster configuration
willemnoorduin Jun 30, 2011 2:53 AM (in response to mbabacek)Seems like my Virtual host tags are not represented correctly. Sorry for that. Well, this is my Virtual Host:
< VirtualHost
ServerAdmin unix@tntpost.nl
DocumentRoot /apps/www.test.nl/data
ServerName www.test.nl
ErrorLog logs/www.test.nl-error_log
CustomLog logs/www.test.nl-access_log combined
LogLevel debugProxyPass / balancer://cluster1/application1 stickysession=JSESSIONID|jsessionid nofailover=On
ProxyPassReverse / balancer://cluster1/application1
< /VirtualHos t>You cannot use the
- What can you use instead for passing jsp and so on to Tomcat (with mod_jk, the answer was JkMount) ?
- What do you use when you want to connect two or more Tomcats (with mod_jk the answer was workers.properties) ?
-
3. Re: Apache / Tomcat6 + mod_cluster configuration
mbabacek Jun 30, 2011 3:40 AM (in response to willemnoorduin)Well, I would use for a httpd machine called superbox01 e.g.:
Listen 8886 <VirtualHost superbox01:8886> ServerName superbox01 ManagerBalancerName supercluster ServerAdvertise On AdvertiseGroup 224.0.1.105:23364 </VirtualHost>
And on Tomcat6 side in server.xml:
<Listener className="org.jboss.modcluster.ModClusterListener" stickySession="true" stickySessionRemove="true" stickySessionForce="false" />
This configuration applies for Mod_Cluster 1.0.x (see docs)
Mod_Cluster 1.1x introduces some additional features (see docs).
Note: The aforementioned configuration needs multicast enabled between the httpd and Tomcat6 box. In case you can't enable multicast, use proxyList.