Integration of SVN and Apache

Source: Internet
Author: User

V svn and Apache Integration

? Download Apache (http://httpd.apache.org/download.cgi)

? Install apache_2.2.14-win32-x86-no_ssl.msi

? Open the configuration file apache2.2 \ conf \ httpd. conf in the Apache installation directory:

V: remove the # (row 83rd) in front of the following two rows ):

Loadmodule dav_module modules/mod_dav.so

Loadmodule dav_fs_module modules/mod_dav_fs.so

V and add the following two rows under the above two rows at the same time (must be placed in this position)

Loadmodule dav_svn_module modules/mod_dav_svn.so

Loadmodule authz_svn_module modules/mod_authz_svn.so

? Find the following two files in the Subversion installation directory:

Bin/mod_authz_svn.so

Bin/mod_dav_svn.so

Copy to the modules directory under the Apache installation directory.

 

? Use the bin/htpasswd.exe executable file in the Apache installation directory to generate an authorization file. The-CB parameter is used for the first generation:

V htpasswd-cb [filename] [username] [Password]

? For example, htpasswd-CB passwd. Apache user name and password (The username must beSVNUser name added in)

V moves the generated passwd. Apache file to the \ conf directory of the svn repository.

V Add the following to the end of the conf \ httpd. conf file in the Apache installation directory:

# Configure a virtual directory #

<Location/SVN/itcast>

# Reference Remote Access Module

Dav SVN

# Path of the project version library #

Svnpath F:/software/Repository/SVN/itcast

# Authorization file #

Authzsvnaccessfile F:/software/Repository/SVN/itcast/CONF/authz

# All users require authentication #

Satisfy any

Require valid-user

# Verification method #

Authtype basic

# Project name #

Authname "itcast"

# User Files #

Authuserfile F:/software/Repository/SVN/itcast/CONF/passwd. Apache

</Location>

V access method:

Http: // localhost/SVN/itcast

 

Result:

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.