Thursday, February 12, 2009

Linux: Apache and SVN with mod_dav and mod_dav_svn

This shows Apache2 and SVN with basic authentication. Digest didn't work for me. If you have it working with Digest authentication, please comment on this post.

The following lines need to be enabled in /etc/httpd/conf/httpd.conf:

LoadModule dav_module modules/mod_dav.so
LoadModule dav_svn_module modules/mod_dav_svn.so


Then the following section needs to be created:

Now you need to create the /etc/svn-auth file and add users to it with:
htpasswd -c /etc/svn-auth

Restart Apache, and you should be able to browse your repository

No comments: