Authentication in Apache2 with mod_dav_svn

Posted by Poita_ on Server Fault See other posts from Server Fault or by Poita_
Published on 2010-06-12T11:46:51Z Indexed on 2010/06/16 19:02 UTC
Read the original article Hit count: 206

Filed under:
|
|
|
|

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.

© Server Fault or respective owner

Related posts about apache

Related posts about authentication