There are two things as below please replace same according your system.
- Name of repository content2018
- Path /NAS16TB
Commands:
- sudo svnadmin create /NAS16TB/content2018
- sudo chown -R www-data:root /NAS16TB/content2018
Edit the authz file and save it.
- sudo vim /NAS16TB/content2018/conf/authz
[/]
manager = rw
Edit the apache file and save it.
- sudo vim /etc/apache2/mods-available/dav_svn.conf
<Location /content2018>
DAV svn
SVNPath /NAS16TB/content2018
SVNIndexXSLT "/svnindex.xsl"
AuthBasicProvider ldap
AuthLDAPUrl ldap://192.168.2.2:389/ou=Users,dc=gc-solutions,dc=net
AuthType basic
AuthzSVNAccessFile /NAS16TB/content2018/conf/authz
AuthName "content2018 Repository"
Require valid-user
</Location>
Finally restart the service (make sure no one is accessing any svn repository of the server that time).
- sudo /etc/init.d/apache2 restart