Apache Configuration for SVN, WebDAV

Here is my current Apache2 config file’s subsection for serving Subversion and WebDAV folders: default-server.conf (webdav fragment).


  • I’m using AuthType Basic for svn, viewcvs, and filesystem DAV access. It provides some security, and is also necessary for WindowsXP, which apparently will not connect to a Web Folder with no authentication.
  • The viewCVS location needs its own authentication, since this tool accesses the SVN repository directly using the file: protocol. In doing so, it bypasses the http server /svn location and its associated authentication.
  • The SVNParentPath is convenient because new SVN repositories can be added without editing the conf file. The downside is that different users can’t be restricted to particular repositories or given different access privileges.
  • ViewCVS has an additional configuration file /srv/viewcvs/viewcvs.conf that must contain the roots of all repositories, plus a few other items.

posted in Apache, Subversion, webdav by Bozzie

1 Comment to "Apache Configuration for SVN, WebDAV"

  1. Leon Koenig wrote:

    Actually, you can use an authz access file to configure user permissions when using SVNParentPath

    Details: http://svnbook.red-bean.com/en/1.2/svn.serverconfig.httpd.html#svn.serverconfig.httpd.authz.perdir
    Details: http://svnbook.red-bean.com/nightly/en/svn.serverconfig.httpd.html#svn.serverconfig.httpd.authz.perdir

Powered by Wordpress and MySQL. Theme by openark.org