I'm having trouble setting up gitweb with gitolite. Gitolite works correctly, but gitweb keeps giving me a 404 - no projects found.
What's strange is that when I run the cgi script as the apache user the following way it seems to work correctly.
# su apache /var/www/git/gitweb.cgi --shell=/bin/sh
....
<tr class="dark">
<td><a class="list" href="?p=testing.git;a=summary">testing.git</a></td>
<td><a class="list" title="Test repo 3" href="?p=testing.git;a=summary">Test repo 3</a></td>
...
Gitweb should have reading access, and I've set $REPO_UMASK = 0022;
in gitweb.conf and added apache to the gitolite group # usermod -a -G gitolite apache
# ls -l gitolite/
total 8
-rw-r--r--. 1 gitolite gitolite 12 Sep 28 08:47 projects.list
drwxr-x---. 4 gitolite gitolite 4096 Sep 28 04:52 repositories
My apache git config:
Alias /git /var/www/git
<Directory /var/www/git>
Options +ExecCGI
AddHandler cgi-script .cgi
DirectoryIndex gitweb.cgi
</Directory>
Can anyone help me get this working? Been trying all day, reading different blogs and posts but it just won't work