ubuntu12.04 APACHE+SVN multi-Library and permissions configuration

Source: Internet
Author: User

1 installation package

Apt-get Install apache2 LIBAPACHE2-SVN

2 Creating catalogs and libraries

Mkdir-p/HOME/SVN

Svnadmin CREATE/HOME/SVN/REP1

Svnadmin CREATE/HOME/SVN/REP2

Chown Www-data-r/HOME/SVN/REP1

Chown Www-data-r/HOME/SVN/REP2

2 Editing a configuration file

Vi/etc/apache2/mods-enabled/dav_svn.load content is as follows

# Depends:dav

LoadModule dav_svn_module/usr/lib/apache2/modules/mod_dav_svn.so

LoadModule authz_svn_module/usr/lib/apache2/modules/mod_authz_svn.so

Vi/etc/apache2/mods-enabled/dav_svn.conf, the contents are as follows

<Location/svn/>

DAV SVN

Svnparentpath/home/svn

Svnlistparentpath on

AuthType Basic

AuthName "Subversion Repository"

authuserfile/etc/subversion/dav_svn.passwd

Authzsvnaccessfile/etc/subversion/dav_svn.authz

Require Valid-user

</Location>

3 Creating a user

Htpasswd-c/ETC/SUBVERSION/DAV_SVN.PASSWD Admin

HTPASSWD/ETC/SUBVERSION/DAV_SVN.PASSWD U2

HTPASSWD/ETC/SUBVERSION/DAV_SVN.PASSWD U2

4 Setting User Rights

Vi/etc/subversion/dav_svn.authz

[/]

admin = r

[rep1:/]

u1 = RW

U2 = R

[rep2:/]

U2 = RW

U1 = R

5 Restart Service

/etc/init.d/apache2 restart

6 visits

HTTP://IP Address/svn/




This article from "Xiao Qiang" blog, reproduced please contact the author!

ubuntu12.04 APACHE+SVN multi-Library and permissions configuration

Related Article

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.