- You have: Apache httpd, gitweb, git repos in users’ homes ~user/git/*
- You want: serve these repos under *http://gitweb.example.org/~user/…*
By default, gitweb only supports serving repos from one project root. For
DragonFly we wanted not only to
serve the main project repo in gitweb, but also serve the
personal repos of developers. These repos are located in the users’ home
directory in ~user/git
. Turns out I could make this work without
having to modify the gitweb source. By adding the following fragment to
gitweb’s config file /etc/gitweb.conf
, we can now serve the
users’ personal repos:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
|