Gerrit Pape | 10d5cc7 | 2007-05-11 09:48:43 +0000 | [diff] [blame] | 1 | gitweb for Debian |
| 2 | ----------------- |
| 3 | |
Jonathan Nieder | 0b94ee8 | 2013-05-20 00:44:30 -0700 | [diff] [blame] | 4 | The gitweb CGI by default looks into the directory /var/lib/git/ for |
Gerrit Pape | 10d5cc7 | 2007-05-11 09:48:43 +0000 | [diff] [blame] | 5 | browsable repositories (this is configured in /etc/gitweb.conf). It expects |
Jonathan Nieder | 0b94ee8 | 2013-05-20 00:44:30 -0700 | [diff] [blame] | 6 | the repositories' .git subdirectories in /var/lib/git/, symlinks pointing |
Gerrit Pape | 10d5cc7 | 2007-05-11 09:48:43 +0000 | [diff] [blame] | 7 | to the corresponding subdirectories in the repositories are just fine, e.g.: |
| 8 | |
Jonathan Nieder | 0b94ee8 | 2013-05-20 00:44:30 -0700 | [diff] [blame] | 9 | ln -s ~pape/git/foo/.git /var/lib/git/foo.git |
Gerrit Pape | 10d5cc7 | 2007-05-11 09:48:43 +0000 | [diff] [blame] | 10 | |
Gerrit Pape | b4bef4f | 2010-01-27 09:34:49 +0000 | [diff] [blame] | 11 | On systems with an Apache webserver, gitweb is automatically made available at |
Jonathan Nieder | a1b6464 | 2014-12-19 18:37:01 -0800 | [diff] [blame] | 12 | http://localhost/gitweb. This requires CGI support, so you may need to run |
| 13 | "a2enmod cgi". You can deactivate the site by running "a2disconf gitweb" or |
| 14 | tweak it by modifying /etc/apache2/conf-available/gitweb.conf |
Gerrit Pape | b4bef4f | 2010-01-27 09:34:49 +0000 | [diff] [blame] | 15 | |
Gerrit Pape | 10d5cc7 | 2007-05-11 09:48:43 +0000 | [diff] [blame] | 16 | For more details about setting up gitweb for a git.example.org server, and |
Jonathan Nieder | 9f4ed0a | 2010-08-19 19:25:07 -0500 | [diff] [blame] | 17 | on how to make the git core tools such as 'git clone' work through http, see |
| 18 | /usr/share/doc/git/README.Debian. |