1. Create SVN server
2. Make SVN server accessible via http
File: httpd.conf
3. Security Management
Create svn-auth-file file
svn-authz-file file
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