Dear Gerrit,

In addition to Gerfried's suggestion, adding the following lines in the apache
configuration file would make http://localhost/gitweb work out of the box,
provided that the following symbolic link is added in /usr/share/gitweb.

lrwxrwxrwx 1 root root 27 2009-03-11 14:18 index.cgi -> 
/usr/lib/cgi-bin/gitweb.cgi

<Directory /usr/share/gitweb>
  Options FollowSymLinks +ExecCGI 
  AddHandler cgi-script .cgi
</Directory>

I can prepare a patch to your package if you are interested, optionally with
the following postinst instruction:

case "$1" in
    configure)
        if [ -x /etc/init.d/apache2 ]
        then
            if which /usr/sbin/invoke-rc.d >/dev/null 2>&1
            then
                invoke-rc.d apache2 reload || true
            else
                /etc/init.d/apache2 reload || true
            fi
        fi
    ;;

    abort-upgrade|abort-remove|abort-deconfigure)
    ;;

    *)
        echo "postinst called with unknown argument \`$1'" >&2
        exit 1
    ;;
esac


Have a nice day,

-- 
Charles Plessy
Tsurumi, Kanagawa, Japan



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to