Skip to contentSkip to conversation

git-instaweb: add support for Apache 2.4

PATCH New Jonathan McCrohan 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 git-instaweb.sh | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)
git-instaweb.sh +11 -1
index 4aa3eb8..513efa6 100755
@@ -345,7 +345,17 @@ PidFile "$fqgitdir/pid"
 Listen $bind$port
 EOF
 
-	for mod in mime dir env log_config
+	for mod in mpm_event mpm_prefork mpm_worker
+	do
+		if test -e $module_path/mod_${mod}.so
+		then
+			echo "LoadModule ${mod}_module " \
+			     "$module_path/mod_${mod}.so" >> "$conf"
+			# only one mpm module permitted
+			break
+		fi
+	done
+	for mod in mime dir env log_config authz_core
 	do
 		if test -e $module_path/mod_${mod}.so
 		then
Signature · 1 line
2.0.0.rc2