"Apache" Centos7 Apache implements HTTP access to the SVN repository

Source: Internet
Author: User

I. BACKGROUND

After setting up my notes svn repository, I wanted to be able to view my notes directly on my phone, provided that HTTP access to the SVN repository was supported. Through your own attempts to succeed, here to share to everyone.

Second, the implementation of HTTP access to the SVN repository

premise : Has set up the SVN environment, not set up the students please go "portal".

1. Installing Apache

Yum Install httpd

2, Installation MOD_DAV_SVN

Yum Install MOD_DAV_SVN

3. Create an HTTP Access user

The format is as follows, with the user name and password consistent with the SVN username and password:

htpasswd [-CMDPSD] passwordfile username

You can create a user zhangyj, and then enter the password and confirm.

Note: When you create a second or later user, you must not use the parameter "C", otherwise the previous user will be deleted, the example is as follows:

Htpasswd-m/home/svn/http_passwd Zhangyj2

To delete a user command:
htpasswd-d passwd Zhangyj

4. Create Apache configuration file

The contents are as follows:

</svn></location>

Explain:
Svnparentpath: Resource Pool directory path
AuthUserFile: User password file path created in step 3rd

5. Modify the repository directory owner to Apache

Chown Apache:apache/home/svn-r

6. Restart Apache

Systemctl Restart Httpd.service

Get!

7. Testing

Format: http://ip/svn/resource pool name

If I create a repository MyNote, the link is: http://127.0.0.1/svn/mynote

Above!

"Apache" Centos7 Apache implements HTTP access to the SVN repository

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.