Subversion/WebDAV

This article will give you a basic overview of a Subversion, WebDAV and Apache configuration, entailing a scenario of subversion repositories located at, Apache2 web access through Https://foo.bar/svn, WebSVN at Https://foo.bar/websvn, no individual ACLs or vhosts.

Requirements
You need a working SVN-Server (, see Subversion/Install) and Apache. Subversion has to be compiled with the and  USE-flags enabled. If you need a webinterface you should also merge.

Configuration
To create, run,

Add apache to svnusers,

Add the following APACHE2_OPTS options in ,

The file should already exist, replace/edit the lower part,

SSLRequireSSL is optional but as you should know HTTPS is always a good idea...

Add the following line to

You can also set the default language, theme, etc. etc. here.

Use htpasswd to create an account,

Don't forget to restart apache.

Repository Creation Script
Aside the default configuration, your apache2 server needs read-write permissions for WebDAV. You can have the following script take care of this for you,

Set the executable bit,

and run it.

This script is based on the Repmin script.