Setting up CGIT to show root directories only

CGIT is a nice, quick, and easy way of displaying git repositories. After much fighting I figured out how to allow CGIT to display URLs such as (the git is optional).

Below is the Apache config for

<VirtualHost *:80>
    DocumentRoot /var/www/
    CustomLog logs/ combined
    ErrorLog logs/
    SetEnv CGIT_CONFIG          /var/www/
    Alias /cgit.css             /var/www/
    Alias /cgit.png             /var/www/
    Alias /favicon.ico          /var/www/
    Alias /robots.txt           /var/www/
    Alias /                     /var/www/
    <Directory /var/www/>
      Options Indexes FollowSymLinks
      Options +ExecCGI
      Order allow,deny
      Allow from all
      AddHandler cgi-script .cgi
      DirectoryIndex cgit.cgi