Ubuntu gitweb 安装配置

安装gitweb 

sudo apt-get install gitweb

配置 gitweb

1. 把 gitweb 要用的静态文件连接到 DocumentRoot 下:

cd /var/www/

sudo ln -s /usr/share/gitweb/* .

2. 修改配置,将 $projectroot 改为git仓库存储目录

sudo vi /etc/gitweb.conf

3. 找到项目,你需要将$projectroot/*.git 的属性改为755,让apache用户有可读权限

sudo chmod 777 **.git

测试:http://localhost/cgi-bin/gitweb.cgi

你可能感兴趣的:(Ubuntu gitweb 安装配置)