Apache_svn multi-database configuration

Source: Internet
Author: User

 

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

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.