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: