svn http access

svnadmin create /path/to/repos/project
sudo apt install subversion apache2 libapache2-svn
sudo chown -R www-data:www-data /path/to/repos
sudo htpasswd -c /etc/subversion/passwd user_name

vi /etc/apache2/apache2.conf

<Location /svn>
DAV svn
SVNParentPath /var/svndata
SVNListParentPath On
AuthType Basic
AuthName "svn name"
AuthUserFile /etc/subversion/passwd
Require valid-user
</Location>

posted @ 2017-05-10 14:51  anjunact  阅读(107)  评论(0编辑  收藏  举报