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:
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
Hope that helps,
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.
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?
1 of 1 people found this helpful
Thanks 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.
Great, I am glad you got it working! So lets wait for the 1.1.4 with the fix for the fix ;-)