-
1. Re: How to combine mod_cluster automatic balancer with proxying to non-JBoss systems
rhusar Oct 27, 2011 12:14 PM (in response to ishai)Hi Irena,
as I am looking at it, I am not sure why are you using these 2?
ProxyPassMatch ^(/jboss-content1/.*)$ balancer://mycluster$1
ProxyPassMatch ^(/jboss-content2.*)$ balancer://mycluster$1
I dont think you need those at all.
So to serve the static content, you need to tell your Apache to NOT proxy those requests to any balancers/workers and keep it for itself :-)
So if you wanna serve all gif images from Apache, use this line:
ProxyPassMatch ^(/.*\.gif)$ !
Note that you need the "!" sign at the end (The
!
directive is useful in situations where you don't want to reverse-proxy a subdirectory).Also have a look at the docs
http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypass
http://docs.jboss.org/mod_cluster/1.1.0/html/native.config.html#d0e477
Hope that helps,
Rado
-
2. Re: How to combine mod_cluster automatic balancer with proxying to non-JBoss systems
ishai Oct 27, 2011 12:39 PM (in response to rhusar)Hi Rado,
Thanks A LOT for the links to the documents. Already checked those. Didn't find the answer to my question about mixing JBoss and non-JBoss proxied content.
I added the ProxyPassMatch as mod_cluster 1.1.3 final was serving root content from JBoss (despite of the default setting to excluded content). I found that this seems to be a know issue to be fixed as described here and should be fixed by MODCLUSTER-220. The bug says it is fixed in 1.1.3 final but community discussion claims that should happen in 1.1.4 final. Bottom line, it server JBoss root document instead httpd one without this. I tried excluder root through ProxyPassMatch - that did not work either.
Please let me know if there is an example/documentation on how the mix can co-exist.
Irena
-
3. Re: How to combine mod_cluster automatic balancer with proxying to non-JBoss systems
rhusar Oct 27, 2011 12:43 PM (in response to ishai)Oh Right, the fix for 220 (which was actually filed by me -- LOL) might have messed that rewriting up. So could you try with 1.1.2 which shouldnt have this wrong fix in?
-
4. Re: How to combine mod_cluster automatic balancer with proxying to non-JBoss systems
ishai Oct 27, 2011 2:40 PM (in response to rhusar)1 of 1 people found this helpfulThanks again Rado
With 1.1.2 final
ProxyPassMatch / !
does the trick with no need for jboss content spelled out correctly.
For non-JBoss content that used to be proxied with ProxyPass/ProxyPassReverse no change is actually needed. Balancers are for JBoss with mod_cluster.sar and will be polled for status - that will not work for non-JBoss.
Irena
-
5. Re: How to combine mod_cluster automatic balancer with proxying to non-JBoss systems
rhusar Oct 29, 2011 8:55 AM (in response to ishai)Great, I am glad you got it working! So lets wait for the 1.1.4 with the fix for the fix ;-)