Friday, November 1, 2013

Subversion Configuratioin Sample

Add below entries into /etc/apache2/conf.d/subversion.conf

<IfModule mod_dav_svn.c>
<Location /test>
        DAV svn          
        SVNPath /srv/svn/test
        AuthType Basic                
        AuthName "Test Repository"        

        AuthzLDAPAuthoritative Off
        AuthBasicProvider ldap   

        AuthLDAPURL "ldap://ldap.goweekend.ca/dc=goweekend,dc=ca?uid?sub?(ldappermission=svntest)"
        REQUIRE valid-user                                                                      

        <LimitExcept GET PROPFIND OPTIONS REPORT>
          Require valid-user              
        </LimitExcept>                          
</Location>                                     

<Location /training>
        DAV svn    
        SVNPath /srv/svn/training/

        Require valid-user
        <LimitExcept GET PROPFIND OPTIONS REPORT>
        AuthType Basic
        AuthName "SVN Training"
        AuthUserFile /srv/svn/training/conf/svnpasswd
        AuthzSVNAccessFile /srv/svn/training/conf/authz
        </LimitExcept>
</Location>

</IfModule>

No comments:

Post a Comment