码迷,mamicode.com
首页 > Web开发 > 详细

TinyCore学习笔记_apache2配置gitweb

时间:2015-02-06 13:13:43      阅读:209      评论:0      收藏:0      [点我收藏+]

标签:

TinyCore运行内存小,很适合做gitweb,于是我摸索了两天,终于弄出来了~


1.

$ tc-load -wi git.tcz

$ tc-load -wi apache2.tcz


2.

#gitweb的配置文件

# mkdir -p /var/www

$ ln -sf /usr/local/share/gitweb /var/www/gitweb

$ vi /usr/local/apache2/conf/httpd.conf

ServerName localhost
DocumentRoot "/var/www/gitweb"
<Directory /var/www/gitweb>
        Options +ExecCGI +FollowSymLinks
        AllowOverride All
        order allow,deny
        allow from all
        AddHandler cgi-script cgi
        DirectoryIndex gitweb.cgi
</Directory>

3.

#gitweb的创库都放在 ~/gitweb

$ cd ~ ; mkdir gitweb; cd gitweb

$ vi /etc/gitweb.conf

$projectroot="/home/用户名/gitweb"


4.

#重启apache2

$ sudo apachectl -k restart


5.

#网页上直接访问

localhost

TinyCore学习笔记_apache2配置gitweb

标签:

原文地址:http://blog.csdn.net/saviourxx/article/details/43562315

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!