开发者

Subversion: Configure svn access through http protocol

I got a ubuntu server edition with subversion, apache2, openssh and need repositories for svn connection with/without any protocol (ssh, file:, http, https, etc). I configured a repository directory

svnadmin create /path/to/repos/project

Made an import

svn import /path/to/import/directory svn+ssh://user@ipaddress/path/to/repos/projectFolder

Configured the apache2 and restarted the server

/etc/subversion/mod-avaliable/dva_svn.conf

<Location /svn>
DAV svn
SVNParentPath /home/svn 
AuthType Basic
AuthName ”Your repository name”
AuthUserFile /etc/subversion/passwd
Require valid-user
</Location>

Already gave permition to the www-data

sudo chown -R www-data:www-data /path/to/repos

However when trying to access the repository through browser I got 403 Forbidden access. How should I开发者_Go百科 proceed?

Thanks for the attention


Authentication is enabled in your configuration:

Require valid-user

In order to access your repository you must add a user:

htpasswd -m -c /etc/subversion/passwd PLS
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜