当前位置: 首页 > 工具软件 > AXE SVN Sync > 使用案例 >

How to setup SVN server

党星鹏
2023-12-01
1. Create SVN server
svnadmin create path
svn import project file:///path

2. Make SVN server accessible via http
File: httpd.conf
LoadModule dav_svn_module libexec/apache2/mod_dav_svn.so
LoadModule authz_svn_module libexec/apache2/mod_authz_svn.so
LoadModule autoindex_module libexec/apache2/mod_autoindex.so

<Location /repos>
    DAV svn
    #SVNPath /Users/ouyang/repository123
    SVNParentPath /Users/ouyang
    AuthzSVNAccessFile /etc/apache2/svn-authz-file
    AuthType Basic
    AuthName "Subversion repository"
    AuthUserFile /etc/apache2/svn-auth-file
    Require valid-user
</Location>

3. Security Management
Create svn-auth-file file
$ htpasswd -cm /etc/apache2/svn-auth-file zhouyumiao
$ htpasswd -m /etc/apache2/svn-auth-file youwenwu


svn-authz-file file
[/]
*=r

[repository123:/]
zhouyumiao=rw
youwenwu=rw
 类似资料:

相关阅读

相关文章

相关问答