Ubuntu 14.04 under SVN + apache2 configuration

Source: Internet
Author: User


Configuration of 1.SVN
sudo  Install Subversion  //  installation svnmkdir//  Create warehouse // the command executes under the root directory  -D  -r/home/svn   // start from this directory

Here for convenience, first upload two folders via TORTOISESVN client code and database, in the Repos directory

Set up two accounts YCC and YZG passwords are 123
CD  /home/svn/passwd

We ask YCC to access all the content under Repos, and YZG can only access the database folder

Vim Authz

Repos represents the repository starting with the root directory

Remember to modify svnserve.conf

Vim svnserve.conf

2.apache2 Configuration

Using HTTP access via Apache2

sudo Install apache2 sudo Install libapache2-svn  // will generate dav_ under the/etc/apache2/mods-available folder Svn.confwen file, that is, we need to bind the SVN configuration file

First set up two accounts YCC and YZG password 123 123

sudo Install // Installation Tools

cd/etc/-C dav_svn. passwd  YCC  // first set up account to add-C

Then you will be prompted to enter the password two times 123 123

HTPASSWD  dav_svn.  passwd  yzg  // Second Setup account do not add-c

In this way, the dav_svn.passwd file is generated under/etc/apache2 and is used when configuring the Dav_svn.conf file later

Then start configuring Dav_svn.con

Vim/mods-available/dav_svn.conf

Here are a few important points to consider:

Location is the directory where the browser enters the address when it is ip+/svn/repos;

Svnpath directory for the resource pool

AuthUserFile is the newly created account file;

Authzsvnaccessfile is the file permission to access the configuration file, which is configured in SVN;

Require Valid-user requires authentication of user identities

Finally start apache2

sudo /etc/init.d/apache2 restart

This can be accessed in the browser input ip+/svn/repos, enter the account password

YCC account can see all folders

YZG account can only see the database folder

Ubuntu 14.04 under SVN + apache2 configuration

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.