To install the Apache based SVN server tutorial under Windows

Source: Internet
Author: User
Tags require svn

First install apache+subversion, how to install, don't ask me ~ online tutorials more go, you can use XAMPP, or phpnow ...

1, httpd.conf SVN installation configuration
PS: If you first install Apache, and then install subversion, under normal circumstances, the replication work, Subversion installer has helped you complete, but for the safety of the time, we still have to check the routine

Before configuring httpd.conf We need to copy the loaded module to the Apache modules directory:
1. Enter the Sibversion installation directory (usually C:Program filessubversion), locate the files httpd/mod_dav_svn.so and mod_authz_svn.so, and copy them to the Apache Modules directory in ES).
2. Copy files from Subversion's installation directory Libdb43.dll (or Libdb44.dll, depending on your version) to the Apache modules directory.
Edit Apache's configuration file httpd.conf and find the following:

The code is as follows Copy Code
#LoadModule Dav_fs_module modules/mod_dav_fs.so
#LoadModule Dav_module modules/mod_dav.so

Modified to:

The code is as follows Copy Code
LoadModule Dav_fs_module modules/mod_dav_fs.so
LoadModule Dav_module modules/mod_dav.so

That is, remove the previous annotation symbol "#", without the above two sentences, please add yourself. and add the following after LoadModule:

The code is as follows Copy Code
LoadModule Dav_svn_module modules/mod_dav_svn.so
LoadModule Authz_svn_module modules/mod_authz_svn.so

2, httpd.conf SVN path configuration
PS: If I want to set up an SVN admin directory in D disk, all versions are placed under the SVN folder in D, for example, the version library path for Project demo is: D:svndemo. So we're going to take the SVN directory of D-disk as a svnparentpath, i.e. d:svn!

Open the previously modified httpd.conf file and add the following at the end:

The code is as follows Copy Code
<Location/svn>
DAV SVN
Svnparentpath D:SVN
AuthType Basic
AuthName "Subversion repositories"
AuthUserFile d:passwd
#AuthzSVNAccessFile D:svnaccessfile
Require Valid-user
</Location>

This configuration means that all your version libraries will be located in the D:SVN directory, and access to your version library can be done using such url:http://myserver/svn/, and access rights will be limited by the username/password in the passwd file.

To create a passwd file, you can open the command line (DOS window), switch the current directory to the Apache directory, and then enter the following command to create the file:

The code is as follows Copy Code
Binhtpasswd-c passwd username

This command executes the Htpasswd.exe in the bin directory to create a password file (for a detailed approach to the HTPASSWD command, please go to: http://js8.in/518.html) and restart the Apache service.

Point your browser to Http://MyServer/svn/demo (demo is the Subversion version library you created earlier). If everything is OK, you will be prompted to enter the username password, and then you can enter the correct username password and you will see the contents of the version library.

3. Supplementary explanation
If you want all users to have read access to the repository and only a specific user has permission to write, you can make this line

The code is as follows Copy Code
Require Valid-user

To

The code is as follows Copy Code

<limitexcept Get PROPFIND OPTIONS report>
Require Valid-user
</LimitExcept>

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.