-
1. Re: Apache serving static content while JBoss serves dynamic?
tehdave Jan 2, 2013 3:37 PM (in response to tehdave)Some additional detail...
Playing around with the mod_proxy_cluster.c code, the get_route_balancer code tries to loop through the balancers. When ProxyPassMatch is present, the number of balancers is 0, so the loop does nothing and causes the function to return NULL. If ProxyPassMatch is commented out, it finds balancers and runs through the loop normally:
for (i = 0; i < conf->balancers->nelts; i++, ptr=ptr+sizeb) {
I added a little debugging, and confirmed that conf->balancers->nelts == 0 when the ProxyPassMatch line is present, and is positive (matching the number of balancers I would expect) when it's commented out.
I'm attempting to discover how that balancer list is populated - the mod_cluster-status page seems to show the balancers I would expect, but it seems to use a different method to get its balancer list - but I've had no luck as of yet.
-
2. Re: Apache serving static content while JBoss serves dynamic?
rhusar Jan 3, 2013 6:41 AM (in response to tehdave)1 of 1 people found this helpfulWhat did you configure for CreateBalancers?
http://docs.jboss.org/mod_cluster/1.2.0/html/native.config.html#d0e485
-
3. Re: Apache serving static content while JBoss serves dynamic?
tehdave Jan 17, 2013 10:31 AM (in response to rhusar)I just realized I never posted to close out this thread. Thanks for the reply, Radoslav, it led me to the fix. Turned out if you add the ProxyPassMatch with the default CreateBalancers value, it only creates the balancers at the main scope. Once I set it to 0, to create the balancers at the virtualhost level, the scoping was correct and it picked up the ProxyPassMatch directive correctly.