apache+subversion前面已介绍过,这里只介绍ViewVC

ViewVC (前身是ViewCVS)是CVS和SVN版本控制系统的Web浏览界面,使用 ViewVC可以浏览版本库中的目录/文件、以及每个文件的历史版本记录等,同时还可以显示和下载文件等操作。

下载wget http://viewvc.tigris.org/files/documents/3330/48879/viewvc-1.1.10.tar.gz
tar -zxvf viewvc-1.1.10.tar.gz
cd viewvc-1.1.10
./viewvc-install

Installing ViewVC to /home/yuchunyun/src/viewvc:

cd /home/yuchunyun/src/viewvc/

vi viewvc.conf

[general]

root_parents = /home/yuchunyun/data/svn : svn

default_root = yuchunyun

vi /home/yuchunyun/src/apache/conf/httpd.conf

ScriptAlias /viewvc /home/yuchunyun/src/apache/cgi-bin/viewvc.cgi

<Location /viewvc>

#AllowOverride None

AuthUserFile /home/yuchunyun/data/passwd

AuthName "ViewVC Client Access"

AuthType Basic

require valid-user

</Location>


/home/yuchunyun/src/apache/bin/httpd -k restart