cgit is a web interface (cgi) for git repositories, written in C. The folder /var/cache/cgit, must be owned by your webserver user. A sample /etc/cgitrc (you must provide one) is in the $DOCS folder, and so are some example configuration files for apache and lighttpd.