{"thread":{"id":"4989","subject":"[PATCH 2/5] git-instaweb: some Apache have mod_cgi builtin","startedAt":"2006-07-26T14:33:18Z","lastAt":"2006-07-26T14:33:18Z","messageCount":1,"participants":["Johannes Schindelin"],"isPatch":true,"patchVersion":1,"patchTotal":5},"messages":[{"id":"24131","messageId":"Pine.LNX.4.63.0607261633060.29667@wbgn013.biozentrum.uni-wuerzburg.de","threadId":"4989","inReplyTo":null,"subject":"[PATCH 2/5] git-instaweb: some Apache have mod_cgi builtin","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2006-07-26T14:33:18Z","receivedAt":"2006-07-26T14:33:18Z","isPatch":true,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"\nSo test for it, and do not always try to load mod_cgi.o.\n\nSigned-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>\n---\n git-instaweb.sh |    4 +++-\n 1 files changed, 3 insertions(+), 1 deletions(-)\n\ndiff --git a/git-instaweb.sh b/git-instaweb.sh\nindex 63b18b9..9829c59 100755\n--- a/git-instaweb.sh\n+++ b/git-instaweb.sh\n@@ -183,8 +183,10 @@ PerlPassEnv GIT_EXEC_DIR\n EOF\n \telse\n \t\t# plain-old CGI\n+\t\tlist_mods=`echo \"$httpd\" | sed \"s/-f$/-l/\"`\n+\t\t$list_mods | grep 'mod_cgi\\.c' >/dev/null || \\\n+\t\techo \"LoadModule cgi_module $module_path/mod_cgi.so\" >> \"$conf\"\n \t\tcat >> \"$conf\" <<EOF\n-LoadModule cgi_module $module_path/mod_cgi.so\n AddHandler cgi-script .cgi\n <Location /gitweb.cgi>\n \tOptions +ExecCGI\n-- \n1.4.2.rc2.g6a4e\n"}]}