Previously configured on the ubuntu12.10 on the Gitweb, this time in 14.10 configuration has been done for a while, write to let everyone can less detours.
1. Ubuntu 14.10 Installation and Configuration Gitweb
sudo apt-get install Gitweb.
2 Configuring and starting Gitweb
sudo cp/etc/apache2/conf.d/gitweb/etc/apache2/conf-available/gitweb.conf
Cd/etc/apache2/conf-enabled
sudo ln-s. /conf-available/gitweb.conf
3. Confirm the gitweb.conf content.
#<virtualhost *:8056>
2 Alias/gitweb/usr/share/gitweb
3
4 <Directory/usr/share/gitweb>
5 Options +followsymlinks +execcgi
6 AddHandler cgi-script. CGI
7 </Directory>
8 ServerName localhost
9 #</virtualhost>
4. Enable config to take effect and restart APACHA2
sudo a2enmod CGI
sudo service apache2 restart
5 Specify the Git repository root directory:
sudo vi/etc/gitweb.conf
Confirm that the configuration of Projectroot and projects_list points to the root directory
$projectroot = "/home/git/";
$projects _list = $projectroot;
Ubuntu 14.10+gitweb Configuration