Author: jfrederic.clere(a)jboss.com
Date: 2009-01-12 03:46:43 -0500 (Mon, 12 Jan 2009)
New Revision: 2162
Modified:
trunk/mod_cluster/native/mod_proxy_cluster/mod_proxy_cluster.c
Log:
Prevent having mod_proxy_balancer and mod_proxy_cluster loaded.
Modified: trunk/mod_cluster/native/mod_proxy_cluster/mod_proxy_cluster.c
===================================================================
--- trunk/mod_cluster/native/mod_proxy_cluster/mod_proxy_cluster.c 2008-12-31 19:33:07 UTC
(rev 2161)
+++ trunk/mod_cluster/native/mod_proxy_cluster/mod_proxy_cluster.c 2009-01-12 08:46:43 UTC
(rev 2162)
@@ -1343,6 +1343,15 @@
static int proxy_cluster_post_config(apr_pool_t *p, apr_pool_t *plog,
apr_pool_t *ptemp, server_rec *s)
{
+
+ /* Check that the mod_proxy_balancer.c is not loaded */
+ if (ap_find_linked_module("mod_proxy_balancer.c") != NULL) {
+ ap_log_error(APLOG_MARK, APLOG_ERR, 0, s,
+ "Module mod_proxy_balancer is loaded"
+ " it must be removed in order for mod_proxy_cluster to
function properly");
+ return HTTP_INTERNAL_SERVER_ERROR;
+ }
+
node_storage = ap_lookup_provider("manager" , "shared",
"0");
if (node_storage == NULL) {
ap_log_error(APLOG_MARK, APLOG_ERR|APLOG_NOERRNO, 0, s,
Show replies by date