Ubuntu 14.10+gitweb Configuration

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.