In this post I am trying to explain , how to create new repository for HTTP accessible subversion using apache (hope it helps ..)
----------------------------------------------------------------------------------------------------
1) sudo svnadmin create /path/to/repos
2) create dav_svn_<repo>.autz file and add below contents
[groups]
dev=<user1>,<user2>
newdev=<user3>
[/]
@dev=rw
@newdev=r
3) Modify /etc/apache2/mods-enabled/dav_ svn.conf
<Location /svn/<repo>>
DAV svn
SVNPath /home/svn/<repo-name>
AuthType Basic
AuthName "Subversion Repository"
AuthUserFile /etc/apache2/dav_svn.passwd
# To enable authorization via mod_authz_svn
AuthzSVNAccessFile /etc/apache2/dav_svn_<repo>. authz
# The following three lines allow anonymous read, but make
# committers authenticate themselves. It requires the 'authz_user'
# module (enable it with 'a2enmod').
#<LimitExcept GET PROPFIND OPTIONS REPORT>
Require valid-user
#</LimitExcept>
</Location>
4) Change ownership of newly created repo directory to svn.
chown -R svn:svn <repo folder>
In this example, "svn" is user.
5) Restart apache
Comments
Post a Comment