Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We are a small company working on a source of a big company. We are actually setting up Subversion with Apache server to work on their code. We need to setup a secure environment so that others outside my group should not have access. I heard there are lot of authentication techniques that can be set up with apache server. Can some one help what are the most secure techniques that come up with apache server and are good with subversion.

share|improve this question

The svnbook goes over several methods of doing authentication. It sounds to me like this is a matter of simply setting up the appropriate security groups, and less about what matter of authentication you use.

If you happen to have an Active Directory or LDAP server, you can use the groups there to define who has access to the server.

share|improve this answer

Do make sure that this is only available over SSL. Apache makes it pretty easy to set up svn repositories with authentication. The configuration snippit below will serve an SVN repository on with HTTP authentication.

<Location />
    Options ExecCGI
    AllowOverride None
    Order allow,deny
    Allow from all

    AuthName ""
    AuthType Basic
    AuthUserFile /srv/domain/htauth/svn.passwd
    Require valid-user
    DAV svn
    SVNPath /srv/domain/repositories
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.