{"thread":{"id":"36756","subject":"[PATCH] git-instaweb: add support for Apache 2.4","startedAt":"2014-05-27T01:18:10Z","lastAt":"2014-05-27T01:18:10Z","messageCount":1,"participants":["Jonathan McCrohan"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"242712","messageId":"1401153490-6567-1-git-send-email-jmccrohan@gmail.com","threadId":"36756","inReplyTo":null,"subject":"[PATCH] git-instaweb: add support for Apache 2.4","fromName":"Jonathan McCrohan","fromEmail":"jmccrohan@gmail.com","sentAt":"2014-05-27T01:18:10Z","receivedAt":"2014-05-27T01:18:10Z","isPatch":true,"sender":{"key":"jmccrohan@gmail.com","avatar":null},"body":"Detect available Apache MPMs and use first available according to\nfollowing order of precedence:\nmpm_event\nmpm_prefork\nmpm_worker\n\nAdd authz_core module if available to avoid HTTP Error 500 errors.\n\nSigned-off-by: Jonathan McCrohan <jmccrohan@gmail.com>\n---\n git-instaweb.sh | 12 +++++++++++-\n 1 file changed, 11 insertions(+), 1 deletion(-)\n\ndiff --git a/git-instaweb.sh b/git-instaweb.sh\nindex 4aa3eb8..513efa6 100755\n--- a/git-instaweb.sh\n+++ b/git-instaweb.sh\n@@ -345,7 +345,17 @@ PidFile \"$fqgitdir/pid\"\n Listen $bind$port\n EOF\n \n-\tfor mod in mime dir env log_config\n+\tfor mod in mpm_event mpm_prefork mpm_worker\n+\tdo\n+\t\tif test -e $module_path/mod_${mod}.so\n+\t\tthen\n+\t\t\techo \"LoadModule ${mod}_module \" \\\n+\t\t\t     \"$module_path/mod_${mod}.so\" >> \"$conf\"\n+\t\t\t# only one mpm module permitted\n+\t\t\tbreak\n+\t\tfi\n+\tdone\n+\tfor mod in mime dir env log_config authz_core\n \tdo\n \t\tif test -e $module_path/mod_${mod}.so\n \t\tthen\n-- \n2.0.0.rc2\n"}]}