TinyCore学习笔记_apache2配置gitweb

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

你可能感兴趣的:(TinyCore学习笔记_apache2配置gitweb)