Skip to content

Commit

Permalink
Merge branch 'mr/instaweb-cgid'
Browse files Browse the repository at this point in the history
* mr/instaweb-cgid:
  instaweb: support mod_cgid for apache2
  • Loading branch information
Junio C Hamano committed Oct 19, 2009
2 parents fb423da + 10d1432 commit d9499c8
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion git-instaweb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,21 @@ EOF
resolve_full_httpd
list_mods=$(echo "$full_httpd" | sed "s/-f$/-l/")
$list_mods | grep 'mod_cgi\.c' >/dev/null 2>&1 || \
echo "LoadModule cgi_module $module_path/mod_cgi.so" >> "$conf"
if test -f "$module_path/mod_cgi.so"
then
echo "LoadModule cgi_module $module_path/mod_cgi.so" >> "$conf"
else
$list_mods | grep 'mod_cgid\.c' >/dev/null 2>&1 || \
if test -f "$module_path/mod_cgid.so"
then
echo "LoadModule cgid_module $module_path/mod_cgid.so" \
>> "$conf"
else
echo "You have no CGI support!"
exit 2
fi
echo "ScriptSock logs/gitweb.sock" >> "$conf"
fi
cat >> "$conf" <<EOF
AddHandler cgi-script .cgi
<Location /gitweb.cgi>
Expand Down

0 comments on commit d9499c8

Please sign in to comment.