git-instaweb: add support for Apache 2.4
Detect available Apache MPMs and use first available according to following order of precedence: mpm_event mpm_prefork mpm_worker Add authz_core module if available to avoid HTTP Error 500 errors. Signed-off-by: Jonathan McCrohan <jmccrohan@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Jonathan McCrohan committed
May 27, 2014 at 02:18 UTC
f8ee1f02da6182a3242306a52c5ae7a39547b37e
1 file changed
+11
-1
git-instaweb.sh
+11
-1
@@ -345,7 +345,17 @@ PidFile "$fqgitdir/pid"
345
Listen $bind$port
346
EOF
347
348
- for mod in mime dir env log_config
348
+ for mod in mpm_event mpm_prefork mpm_worker
349
+ do
350
+ if test -e $module_path/mod_${mod}.so
351
+ then
352
+ echo "LoadModule ${mod}_module " \
353
+ "$module_path/mod_${mod}.so" >> "$conf"
354
+ # only one mpm module permitted
355
+ break
356
+ fi
357
+ done
358
+ for mod in mime dir env log_config authz_core
359
do
360
if test -e $module_path/mod_${mod}.so
361
then