Wednesday, April 15, 2009

Subversion over Apache on Windows

I had installed Collabnet Subversion Server as the VCS on my laptop. The httpd.conf installed by default is not usable straight out of the box. Here are a few things I had to fix.

The Subversion manual prescribes the following setting for using Digest authentication:
<Location /svn>
   DAV svn
   SVNParentPath /var/svn
   AuthType Digest
   AuthName "Subversion repository"
   AuthDigestDomain /svn/
   AuthUserFile /etc/svn-auth-file
   Require valid-user
</Location>
That doesn't work. From what I learned here, it should actually be:
<Location /svn>
   DAV svn
   SVNParentPath /var/svn
   AuthType Digest
   AuthName "Subversion repository"
   AuthDigestDomain /svn
   AuthUserFile /etc/svn-auth-file
   Require valid-user
</Location>
In other words, both Location and AuthDigestDomain should be /svn without the trailing slash. And remember to use htdigest.exe instead of htpasswd.exe when using Digest authentication.


Another thing: the locally installed Apache manual is not enabled by default.
  • Find the following line in httpd.conf and uncomment it:
    Include conf/extra/httpd-manual.conf
  • Open conf/extra/httpd-manual.conf and replace all occurrences of the following with the path to httpd/manual
    F:/windows/subversion/../httpd/tmp/httpd/Apache/manual

No comments:

About Me

My photo
C/C++ Programmer doing CAD on Windows. Some web development experience. Bangalorean.

Blog Archive

Labels