ubuntu 16.10 下安装gitweb,apache2
2016-11-08 16:47
239 查看
1.安装gitweb,
apache2
sudo
apt-get install gitweb apache2
2.修改/etc/gitweb.conf
vim
/etc/gitweb.conf
内容如下:
$projectroot
= "/home/git/repositories";
$git_temp
= "/tmp";
$projects_list
= $projectroot;
@stylesheets
= ("../gitweb/static/gitweb.css");
$javascript
= "../gitweb/static/gitweb.js";
$logo
= "../gitweb/static/git-logo.png";
$favicon
= "../gitweb/static/git-favicon.png";
@diff_opts
= ();
保存退出
3.修改/etc/apache2/conf-available/gitweb.conf
vim
/etc/apache2/conf-available/gitweb.conf
内容如下:
Alias
/gitweb /usr/share/gitweb
<Directory
/usr/share/gitweb>
Options
+FollowSymLinks +ExecCGI
AddHandler
cgi-script .cgi
</Directory>
保存退出
4.使cgi生效
sudo
a2enmod cgi
sudo
service apache2 restart
5.访问http://192.168.100.200/cgi-bin/gitweb.cgi就可看到git的项目信息
注意
旧版本的/etc/apache2/conf.d/gitweb和新版本的/etc/apache2/conf-available/gitweb的是同一个目录。
相信有很多人遇到这个问题。如有问题,希望大家补充。
apache2
sudo
apt-get install gitweb apache2
2.修改/etc/gitweb.conf
vim
/etc/gitweb.conf
内容如下:
$projectroot
= "/home/git/repositories";
$git_temp
= "/tmp";
$projects_list
= $projectroot;
@stylesheets
= ("../gitweb/static/gitweb.css");
$javascript
= "../gitweb/static/gitweb.js";
$logo
= "../gitweb/static/git-logo.png";
$favicon
= "../gitweb/static/git-favicon.png";
@diff_opts
= ();
保存退出
3.修改/etc/apache2/conf-available/gitweb.conf
vim
/etc/apache2/conf-available/gitweb.conf
内容如下:
Alias
/gitweb /usr/share/gitweb
<Directory
/usr/share/gitweb>
Options
+FollowSymLinks +ExecCGI
AddHandler
cgi-script .cgi
</Directory>
保存退出
4.使cgi生效
sudo
a2enmod cgi
sudo
service apache2 restart
5.访问http://192.168.100.200/cgi-bin/gitweb.cgi就可看到git的项目信息
注意
旧版本的/etc/apache2/conf.d/gitweb和新版本的/etc/apache2/conf-available/gitweb的是同一个目录。
相信有很多人遇到这个问题。如有问题,希望大家补充。
相关文章推荐
- Ubuntu 16.10 下安装gitweb,apache2
- Ubuntu上安装webgit并配置
- Ubuntu gitweb 安装配置
- 在Ubuntu 16.10 安装 git 并上传代码至 git.oschina.net
- Ubuntu下搭建基于apache2的gerrit+gitweb服务器
- Ubuntu 上Gitweb安装指南
- 配置安装转载网上的 Apache2 + Gitweb+CGI配置
- Ubuntu下搭建基于apache2的gerrit+gitweb服务器
- ubuntu 16.04 apache2 git gitweb
- ubuntu 上安装gitweb(用虚拟机的方式)
- ubuntu上配置git服务器 -增加apache2安装方法
- Ubuntu下安装git
- Ubuntu安装Git客户端
- 在ubuntu里安装libapache2-mod-php5 php5-mysql mysql-server失败后的解决方法
- Ubuntu10.04搭建Git服务器和GitWeb
- ubuntu 下安装 git
- gitweb在ubuntu上的配置
- 在AWS平台上的ubuntu系统中安装Geoserver(Installing a headless GeoServer on Ubuntu 10.4 on Amazon Web Services)
- Ubuntu 10.10中安装 Apache2 + PHP5 + InstantClient + oci8
- git学习一 基于linux ubuntu git安装与配置