日期:2014-05-17 浏览次数:20815 次
DavLockDB "/usr/local/apache/var/DavLock" Alias /git "/home/git/gitrepo" <Directory "/home/git/gitrepo/"> Dav On Options +Indexes +FollowSymLinks Deny from all AuthType Basic AuthName "Git" AuthUserFile "/home/git/gitrepo/user.git" AuthGroupFile "/home/git/gitrepo/group.git" Require valid-user </Directory> <Directory "/home/git/gitrepo/test.git/"> Allow from all Order Allow,Deny <Limit GET> Require group testproject-read </Limit> <Limit GET PUT POST DELETE PROPPATCH MKCOL COPY MOVE LOCK UNLOCK> Require group testproject-write </Limit> </Directory> <Location /git> SetHandler None </Location>
testproject-read: jack testproject-write: john alex
machine www.gitserver.com login jack password 123456