SVN Server Setup for HTTP protocol (apache+subversion)

Source: Internet
Author: User
Tags password protection ssl connection

First step: Install Apache Subversion
Yum Install httpd
Yum Install Httpd-devel//for developing Apache modules
Yum Install Subversion
Yum install interface between MOD_DAV_SVN//subversion and Apache (through which Apache can access the repository, allowing the client to also access it using the extended protocol of HTTP WEBDAV/DELTAV)


Verify that the SVN module (MOD_DAV_SVN) is installed correctly
Ls/etc/httpd/modules | grep SVN
System prompt:
Mod_authz_svn.so
Mod_dav_svn.so

Step Two: Create SVN libraries and projects
MKDIR/MNT/SVN//Create SVN Library
Svnadmin Create/mnt/svn/projcet//Create Project
Step three: Add group and team members permissions
Groupadd Subversion//Create a group called Subversion to have the directory where the repository resides
Usermod-g subversion-a Apache//Add yourself and Apache users to the group members
View: More/etc/group | grep subversion
system hint:Subversion:x:506:apache
Fourth Step: Modify Project Permissions

Chown-r Apache:apache/mnt/svn/project

Fifth step: Configure HTTPD and SVN-associated configuration files

Check out the following: Enable the client to access the SVN archive via Apache, Apache needs to load the MOD_DAV_SVN module, in general, the configuration file already exists

Vim/etc/httpd/conf.d/subversion.conf

LoadModule Dav_svn_module modules/mod_dav_svn.so
LoadModule Authz_svn_module modules/mod_authz_svn.so


<Location/repos>
DAV SVN
Svnparentpath/mnt/svn
#
# # Limit Write permission to list of valid users.
# <limitexcept GET PROPFIND OPTIONS report>
# # Require SSL connection for password protection.
# # Sslrequiressl
#
Authzsvnaccessfile/etc/svn-acl-conf #svn的配置文件
AuthType Basic
AuthName "Subversion Repos"
AUTHUSERFILE/ETC/SVN-AUTH-CONF#SVN Authenticated users ' files
Require Valid-user
# </LimitExcept>
</Location>

VI. Create SVN Authenticated Users

Htpasswd-m-b/etc/svn-auth-conf Summer (user name) 123QWEASD (password)


Seven, start httpd service and verification

/etc/init.d/https start

Open Web Input Http://ip/repos/projcet

Enter User name password verification


Viii. creating a project path in the server

mkdir www.server.com

CD www.server.com

SVN checkout Http://ip/repos/project

Enter the SVN username password and verify that it was created successfully


Its ok


SVN Server Setup for HTTP protocol (apache+subversion)

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.