Home VCS SVN
Vhost example for SVN

LDAPSharedCacheSize 200000
LDAPCacheEntries 1024
LDAPCacheTTL 800
LDAPOpCacheEntries 1024
LDAPOpCacheTTL 800


<VirtualHost *:80>
        ServerAdmin root@localhost
        ServerName myservername.com

    <Location "/Repositories/">
        DAV svn
        SVNParentPath /home/Repositories
        SVNListParentPath On

        AuthBasicProvider ldap
        AuthType Basic
        AuthzLDAPAuthoritative off
        AuthName "SVN  Access"
        AuthLDAPURL ldap://<myldapserver>:389/OU=myou,DC=mydc,DC=mydc?sAMAccountName?sub?(objectClass=*)
        AuthLDAPBindDN cn=ldapreader,OU=Systeme,OU=myou,DC=mydc,DC=mydc
        AuthLDAPBindPassword "mypasswd"

        Require ldap-group CN=svnaccess,OU=Systeme,OU=myou,DC=mydc,DC=mydc
        Require ldap-user svnupdate
        AuthzSVNAccessFile /home/svnperm/svn.auth

    </Location>


    ScriptAlias /viewvc /usr/lib/cgi-bin/viewvc.cgi
    <Directory "/usr/lib/cgi-bin">
      AllowOverride None
      Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
    #  Order allow,deny
    #  Allow from all
      AuthBasicProvider ldap
      AuthType Basic
      AuthzLDAPAuthoritative off
      AuthName "Viewvc Access"
      AuthLDAPURL ldap://myldapserver:389/OU=myou,DC=mydc,DC=mydc?sAMAccountName?sub?(objectClass=*)
      AuthLDAPBindDN cn=ldapreader,OU=Systeme,OU=myou,DC=mydc,DC=mydc
      AuthLDAPBindPassword "mypasswd"

      Require ldap-group CN=svnaccess,OU=Systeme,OU=myou,DC=mydc,DC=mydc
      Require ldap-user svnupdate

    </Directory>

   ErrorLog /var/log/apache2/svn-error.log

   # Possible values include: debug, info, notice, warn, error, crit,
   # alert, emerg.
   LogLevel warn

   CustomLog /var/log/apache2/svn-access.log combined


</VirtualHost>