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