TinyCore学习笔记_apache2配置gitweb

来源:互联网 发布:淘宝网商城首页 编辑:程序博客网 时间:2024/04/30 13:08

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


1.

$ tc-load -wi git.tcz

$ tc-load -wi apache2.tcz

$ tc-load -wi perl5.tcz


2.

#gitweb的配置文件

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

ServerName localhost
DocumentRoot "/usr/local/share/gitweb"
<Directory /usr/local/share/gitweb>
        Options +Indexes +ExecCGI +FollowSymLinks
        AllowOverride All
        order allow,deny
        allow from all
        AddHandler cgi-script cgi
        DirectoryIndex gitweb.cgi
</Directory>
ErrorLog /var/log/apache2_gitweb_err.log
CustomLog "/var/log/apache2_gitweb.access.log" combined

3.

#gitweb的创库都放在 ~/gitweb

$ cd ~ ; mkdir gitweb; cd gitweb

$ vi /etc/gitweb.conf

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


4.

#重启apache2

$ sudo apachectl -k restart


5.

#网页上直接访问

localhost

1 0
原创粉丝点击