Subversion: configure svn access via http protocol

I have a version of Ubuntu server with subversion, apache2, openssh and need repositories to connect svn with / without any protocol (ssh, file :, http, https, etc.). I configured the repository directory

svnadmin create /path/to/repos/project

Import made

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

Configured 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>

The use of www-data p> is already allowed

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

However, when I tried to access the repository through a browser, I got 403 denied access. How can I continue?

Thank you for the attention

+3
source share
1 answer

Authentication is included in your configuration:

Require a valid user

To access your repository, you must add a user:

htpasswd -m -c /etc/subversion/passwd PLS
+1

Source: https://habr.com/ru/post/1764055/


All Articles