git-instaweb: some Apache have mod_cgi builtin
So test for it, and do not always try to load mod_cgi.o. Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
parent
b7a036bb5f
commit
2b5d2d8792
@ -183,8 +183,10 @@ PerlPassEnv GIT_EXEC_DIR
|
|||||||
EOF
|
EOF
|
||||||
else
|
else
|
||||||
# plain-old CGI
|
# 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" <<EOF
|
cat >> "$conf" <<EOF
|
||||||
LoadModule cgi_module $module_path/mod_cgi.so
|
|
||||||
AddHandler cgi-script .cgi
|
AddHandler cgi-script .cgi
|
||||||
<Location /gitweb.cgi>
|
<Location /gitweb.cgi>
|
||||||
Options +ExecCGI
|
Options +ExecCGI
|
||||||
|
Loading…
Reference in New Issue
Block a user