Step-by-step installtion of cGit on nginx without funky rewrite rules.
This is for
sudo aptitude install build-essential
autoconf
automake
libtool
libfcgi-dev
spawn-fcgi
Now lets install fcgiwrap. Alternatively, you can
git clone https://github.com/gnosek/fcgiwrap.git
http://manpages.ubuntu.com/manpages/natty/man8/fcgiwrap.8.html http://wiki.nginx.org/Fcgiwrap