Problem

Set up Ubuntu workstation to provide SVN using Apache and WebDAV.

Analysis

There are basically 2 ways to do it:

  1. ssh+svn
  2. 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

  1. Setting up a Subversion Server on Ubuntu Gutsy Gibbon server
Setting up Subversion on Ubuntu
Tagged on:             

Leave a Reply