Problem
Set up Ubuntu workstation to provide SVN using Apache and WebDAV.
Analysis
There are basically 2 ways to do it:
- ssh+svn
- https (using webdav)
Solution
We take the second one.
# apt-get install libapache2-svn # cd /etc/apache2/sites-enabled # vi 000-default
The content of 000-default:
<Location /svn/repos> AuthType Basic AuthName "Subversion Repository" AuthUserFile /etc/apache2/passwd Require valid-user DAV svn SVNPath /var/svn/repos </Location>
Reload web server:
/etc/init.d/apache2 force-reload
Create your password file:
htpasswd -c /etc/apache2/passwd user
Resources
Setting up Subversion on Ubuntu