-
1. Re: Mod_cluster in combination with ProxyPass for non-clustered content
spolti May 16, 2014 8:18 AM (in response to jeroenvds)Yes, it is possible, but, where are your mod_cluster configs?
-
2. Re: Mod_cluster in combination with ProxyPass for non-clustered content
winfinit May 17, 2014 10:28 AM (in response to jeroenvds)your example should work, however there might be some caveats, such as protocol adjustment (http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#envsettings) so your config would looks something similar to this:
<Location /bar>
ProxyPass http://localhost:4451/cluster/foo
SetEnv force-proxy-request-1.0 1
SetEnv proxy-nokeepalive 1
</Location>
if you have multiple virtual hosts, then look at CreateBalancers configuration (Chapter 3. httpd configuration), to create mod_cluster rules in every host, you would need it to set that to 0.
CreateBalancers 0
-
3. Re: Mod_cluster in combination with ProxyPass for non-clustered content
rhusar May 19, 2014 9:47 AM (in response to winfinit)1 of 1 people found this helpfulCreateBalancers 0
Correct, that should do most of the trick.
-
4. Re: Mod_cluster in combination with ProxyPass for non-clustered content
jeroenvds May 26, 2014 5:29 AM (in response to jeroenvds)Thanks, this did the trick. Final version of the configuration:
<VirtualHost *:8080> <Directory /> Order deny,allow Allow from all </Directory> <Location /mod_cluster-manager> SetHandler mod_cluster-manager Order deny,allow Allow from all </Location> <Location /jettyapp> ProxyPass http://localhost:8081/jettyapp Order deny,allow Allow from all CreateBalancers 0 </Location> KeepAliveTimeout 60 ManagerBalancerName eandiscluster ServerAdvertise On EnableMCPMReceive On </VirtualHost>