SVN unifies Apache to implement web also access SVN

Source: Internet
Author: User

Purpose: In order to compare convenient view, pull the files inside the SVN library, use SVN and Apache together, you can use the browser directly to view the files inside SVN.

Environment:

centos6.5+subversion+apache2.2

Deployment:

1, install SVN

Yum-y Install Subversion

2, install Apache

Yum-y Install httpd

3, install the Apache support module for SVN

Yum-y Install MOD_DAV_SVN

Configuration:

1, configure SVN

Create SVN repository: Svnadmin CREATE/HOME/SVN/REPO1

Edit CONF/PASSWD

[User]

Admin=admin

Test=test

Edit Conf/authz

[Aliases]

[Groups]

Group_admin =admin

Group_test = Test

[/]

@group_admin =RW

@group_test = R

* =

[/doc]

@group_admin = RW

@group_test = RW

* =

Start: svnserve-d-R/HOME/SVN/REPO1

2, configure Apache

After installing MOD_DAV_SVN, a subversion.conf will appear under/etc/httpd/conf.d/.

This file is complicated to import svn associated Apache module

LoadModule Dav_svn_module modules/mod_dav_svn.so

LoadModule Authz_svn_module modules/mod_authz_svn.so

To configure this file subversion.conf, add the following paragraph

<Location/repo1> DAV svn svnpath/home/svn/repo1 svnlistparentpath on authtype Basic Authnam E "Aolens" authuserfile/home/svn/passwd Require valid-user</location>

Svnpath is the SVN address

AUTHUSERFILE/HOME/SVN/PASSWD is the browser security authentication password generation

Htpasswd-cmd passwd Aolens

Aolens is a secure authenticated user

Restart Apache

Service httpd Restart

Visit HTTP://IP/REPO1

Enter the authentication password account to view SVN information


This article is from the "Aolens blocks until those" blog, be sure to keep this source http://aolens.blog.51cto.com/7021142/1857176

SVN unifies Apache to implement web also access SVN

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.