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


There are basically 2 ways to do it:

  1. ssh+svn
  2. https (using webdav)


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

Reload web server:

/etc/init.d/apache2 force-reload

Create your password file:

htpasswd -c /etc/apache2/passwd user


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

Leave a Reply

Your email address will not be published. Required fields are marked *