Hi Apache team,

in case apache was configured with "--enable-mpms-shared=all" only mpm_event is 
listed in httpd.conf.
If an additional MPM was given as default, then this MPM is listed as default 
but not the others, anyway in both cases all possible modules where build and 
installed.

Resulting httpd.conf without patch:
 #LoadModule lbmethod_bybusyness_module 
libexec/apache24/mod_lbmethod_bybusyness.so
 LoadModule mpm_event_module libexec/apache24/mod_mpm_event.so
 LoadModule unixd_module libexec/apache24/mod_unixd.so


Resulting httpd.conf with patch and regenerated configure script
 #LoadModule lbmethod_bybusyness_module 
libexec/apache24/mod_lbmethod_bybusyness.so
 LoadModule mpm_event_module libexec/apache24/mod_mpm_event.so
 #LoadModule mpm_prefork_module libexec/apache24/mod_mpm_prefork.so
 #LoadModule mpm_worker_module libexec/apache24/mod_mpm_worker.so

The patch below fix the resulting modules in httpd.conf and is related to 
https://issues.apache.org/bugzilla/show_bug.cgi?id=53882



Index: branches/2.4.x/acinclude.m4
===================================================================
--- branches/2.4.x/acinclude.m4 (revision 1642475)
+++ branches/2.4.x/acinclude.m4 (working copy)
@@ -267,9 +267,9 @@
 static =
 shared = $libname
 EOF
+            DSO_MODULES="$DSO_MODULES mpm_$1"
             # add default MPM to LoadModule list
             if test $1 = $default_mpm; then
-                DSO_MODULES="$DSO_MODULES mpm_$1"
                 ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},mpm_$1"
             fi
         fi

Reply via email to