X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=git-instaweb.sh;h=9829c591543b0fe4dd55b996cb399d925dda08ab;hb=24cf6e5847073d50390e0b7950e8e6b5a09103bc;hp=63b18b99f65fe7ac60a76a0dfd2662d7400696c8;hpb=096b1732343305b7096b1085c23eba8cd83569c7;p=git.git diff --git a/git-instaweb.sh b/git-instaweb.sh index 63b18b99f..9829c5915 100755 --- a/git-instaweb.sh +++ b/git-instaweb.sh @@ -183,8 +183,10 @@ PerlPassEnv GIT_EXEC_DIR EOF else # plain-old CGI + list_mods=`echo "$httpd" | sed "s/-f$/-l/"` + $list_mods | grep 'mod_cgi\.c' >/dev/null || \ + echo "LoadModule cgi_module $module_path/mod_cgi.so" >> "$conf" cat >> "$conf" < Options +ExecCGI