I'm on Mac OsX, trying to host my own git server. I've got gitolite running perfectly.
However, I have a folder called "git
" in my Sites
directory, such that visiting http://git.example.com points to that directory.
How can I get Gitweb's document root to point to my gitolite "repositories
" folder in /Users/me/repositories/
?
Best Answer
You need to add a
gitweb.conf.pl
file (like this one) which:export_auth_hook
sub,gitweb.cgi
calls it)That would include:
With
access()
being a function ofgitolite/src/lib/Gitolite/Conf/Load.pm
.Your
httpd.conf
would then call thegitweb.cgi
script like in this one.