git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] git-instaweb: add support for Apache 2.4

From
JMJonathan McCrohan <jmccrohan@gmail.com>
Date
May 27, 2014, 01:18 UTC
Message-ID
<1401153490-6567-1-git-send-email-jmccrohan@gmail.com>

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
Message 1 of 1 in “git-instaweb: add support for Apache 2.4”
  1. git-instaweb: add support for Apache 2.4Jonathan McCrohan, May 27, 2014

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.