Apache configuration of Subversion server

Source: Internet
Author: User

 Install Apache
As the next generation of CVs, kerl is really painstaking. Now let's take a look at how to configure it to the apacheserver.
Subversion itself has a built-in small server that is the cvsserve under the bin, accessed through SVN: // XXXX. SSH configuration is also supported. However, the weakness is that this server is weak in permission and user management. For large projects, it must be hashed to a major Saba such as apacheserver.
[For svnserve user files, you need to modify the two files in the conf file. For more information, see the comments. I will not talk about them here]

You should get the binary installation version of subversion. The stable version is 1.2.3, this version requires the minimum apacheserver version 2.0.45, so we can download version 2.0.55 from the Apache official site (the latest version is 2.5 ). Install 2 software respectively.
OK. The software environment is ready. connect them.

Database connection:
(If you are too reluctant to change the version, you must first install apacheserver when installing the software, and the subversion will be automatically modified during installation)
Subversion can be seen as a special database (in fact, haha fsfs and Berkeley dB ). Then Apache needs to be able to access the Subversion database. This uses the module concept and we will modify the httpd. conf file.
1. Open the davmodule that comes with Apache: remove the one before "loadmodule dav_module modules/mod_dav.so #
2. Module used to access Subversion: (these two modules are included in the installation directory bin of subversion)
Loadmodule dav_svn_module "C:/program files/subversion/bin/mod_dav_svn.so"
Loadmodule authz_svn_module "C:/program files/subversion/bin/mod_authz_svn.so"

Permission settings:
Something is troublesome. We need to configure three things:
1. Append <location> in httpd. conf. Example:
# Configure subversion User Permissions
<Location/mysvn>
Dav SVN
# Input "/mysvn/parser" URL will map to a repository F:/SVN/Repository/parser in HTTP
Svnparentpath F:/SVN/Repository/

# Declare the accessfilepolicy file to confirm the Group category and Directory Access Permissions
Authzsvnaccessfile F:/SVN/commonconf/accessfilepolicy

# Only Authenticated Users may access the Repository
# Require valid-user
# For any operations other than these, require an authenticated user.
<Limitaskt get PROPFIND Options Report>
Require valid-user
</Limit10000t>

# Declare the userauthofapachedav file, whose content is the MD5 password of each user
Authtype basic
Authname "hfsvb authname"
Authuserfile F:/SVN/commonconf/userauthofapachedav
</Location>

2. The accessfilepolicy file (which can be stored in the conf directory of the project at Will) is as follows:
# This file communicate with httpd file's location tag, Per File per tag
# Like svnserve. conf here section is [repos-Name: path] or [path]
# If you use svnparentpath in httpd. conf then here you must use repository name
# If you use svnpath, no problem
# R read w write

# Don't have any right to Parser:/src/of user guest
# [Repository name: path]
# [Parser:/src/]
# Guest =

[Groups]
Administrator = Admin
Developer = Tester
Everyone = admin, Tester

# Default no one has right to repos, so use * to everyone
[Parser:/] # all files and directories under the root directory, and inherit the relationship
* = R # by default, all users have the read permission.
@ Developer = RW # This indicates that only developer (tester) has the read and write permissions.
[For specific files and content, see orilly's version control using subversion.
Access http://www.subversion.org.cn/svnbook/1.1/index.html]
3. Userauthofapachedav File
Admin: $ apr1 $ a45...... $ wq0rck61i/po4gskt. kk60
How is this file generated? Use htpasswd.exe in the Apache bindirectory. For usage instructions, see the help of -- help.
Here is an example.
> Htpasswd-cm c:/userauthofapachedav Admin
> Input password: admin123
> Again: admin123
I forgot the specific English. It's easy.

Okay, that's easy. I wish you all a happy time. This is just an entry. The specific operation depends on your own experience.

The orilly book mentioned above records how to set the Subversion project library.

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.