Http://blog.csdn.net/redvalley/archive/2011/04/28/6370450.aspx [above]
1. Create two databases
Svnadmin create/SDD/SVN/zzf
Svnadmin create/SDD/SVN/Kingdee
Chown-r www-data: www-data/SDD/SVN/zzf
Chown-r www-data: www-data/SDD/SVN/Kingdee
Chown www-data: www-data/SDD/SVN
2. The two databases point to the same authorization Configuration
Nano/SDD/SVN/zzf/CONF/svnserve. conf
Nano/SDD/SVN/Kingdee/CONF/svnserve. conf
Anon-access = none
Auth-access = write
Password-DB = ../passwd
Authz-DB =.../../authz
Nano/SDD/SVN/authz
# SVN and HTTP consistency (different from above)
[Zzf:/]
Zzf = RW
* =
[Kingdee:/]
EAs = RW
* =
Nano/SDD/SVN/passwd
[Users]
Zzf = ******
EAs = ******
3. Apache Multi-database configuration, sharing apache_passwd and authz.
# Http://xxx.xxx.xxx/svn/zzf <location/SVN/zzf>
Dav SVN
Svnpath/SDD/SVN/zzf
Authtype basic
Authname "Subversion repository -- own by zzf"
Authuserfile/SDD/SVN/apache_passwd # user password, which is different from the passwd of SVN and set later.
Authzsvnaccessfile/SDD/CONF/authz # Share SVN permission Control
Require valid-user # Authentication
</Location>
<Location/SVN/Kingdee>
Dav SVN
Svnpath/SDD/SVN/Kingdee
Authtype basic
Authname "Subversion repository -- own by zzf"
Authuserfile/SDD/SVN/apache_passwd
Authzsvnaccessfile/SDD/SVN/authz
Require valid-user
</Location>
4. Set the HTTP access user password
Htpasswd-C/SDD/SVN/apache_passwd zzf
...
Htpasswd/SDD/SVN/apache_passwd eas
...
/Etc/init. d/apache2 restart, Ko ~
Two methods to access the same resource
Http://wikiway.cn/svn/zzf
SVN: // wikiway.cn/zzf