git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] git-instaweb: add support for Apache 2.4
@ 2014-05-27  1:18 Jonathan McCrohan
  0 siblings, 0 replies; only message in thread
From: Jonathan McCrohan @ 2014-05-27  1:18 UTC (permalink / raw)
  To: gitster, git; +Cc: Jonathan McCrohan

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>
---
 git-instaweb.sh | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/git-instaweb.sh b/git-instaweb.sh
index 4aa3eb8..513efa6 100755
--- a/git-instaweb.sh
+++ b/git-instaweb.sh
@@ -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
-- 
2.0.0.rc2

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2014-05-27  1:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-27  1:18 [PATCH] git-instaweb: add support for Apache 2.4 Jonathan McCrohan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).