Authentication in Apache2 with mod_dav_svn

Posted by Poita_ on Super User See other posts from Super User or by Poita_
Published on 2010-06-12T11:46:51Z Indexed on 2010/06/12 11:54 UTC
Read the original article Hit count: 310

I'm having some trouble setting up authentication in Apache2 for a SVN repository that's being served using mod_dav_svn.

Here is my Apache config for the directory:

<Location /svn>
    DAV svn
    SVNParentPath /var/svn/repos

    AuthType Basic
    AuthName "Subversion Repository"
    AuthUserFile /etc/apache2/dev.passwd
    Require valid-user
</Location>

I can use svn with the projects under /var/svn/repos, so I know that the DAV is working, but when I do svn updates or commits (or anything), Apache doesn't ask for any authentication... It does the exact same thing whether the Auth directives are there or not.

The permissions on the repository directory (and all subdirectories/files) only give permission to www-data (the Apache2 user/group).

I have also ensured that all relevant modules are enabled (in particular mod_auth is enabled, as are all mod_dav* modules).

Any ideas why svn commands aren't authenticating?

Thanks in advance.

© Super User or respective owner

Related posts about apache

Related posts about authentication