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.




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


1, configure SVN

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





Edit Conf/authz



Group_admin =admin

Group_test = Test


@group_admin =RW

@group_test = R

* =


@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/

LoadModule Authz_svn_module modules/

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


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

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: 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.