啥也没写
分类: LINUX
2008-06-12 11:53:57
1、安装apache
tar -zxvf httpd-2.0.59.tar.gz
cd httpd-2.0.59
ls
./configure --prefix=/usr/local/apache --enable-dav --enable-so --enable-maintainer-mode
make ;make install
2、安装subversion
tar -zxvf subversion-1.4.6.tar.gz
tar -zxvf subversion-deps-1.4.6.tar.gz
./configure
make ;make install
3、配置subversion
svnadmin create /work/svn/svnroot
ln -s /usr/local/apache/bin/htpasswd /bin/htpasswd
htpasswd /work/svn/svnroot/conf/authfile akin
htpasswd /work/svn/svnroot/conf/authfile test
[root@localhost conf]# cat authfile
akin:FHEGik96Oizdk
test:8A9NdfMxDzpVw
[root@localhost conf]# cat authz
[groups]
admin = akin
devteamc = test
[/]
* = r
@admin = rw //任何都对根目录可读,ADMIN可写
[/test]
* =
@devteamc = rw
@admin = rw //test目录只有管理员组级开发组可读写,其它人都没权限
[root@localhost conf]# cat httpd.conf
................
.............
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so
DAV svn
SVNPath /work/svn/svnroot
AuthType Basic
AuthName "Subversion repository"
AuthUserFile /work/svn/svnroot/conf/authfile
AuthzSVNAccessFile /work/svn/svnroot/conf/authz
Require valid-user