Apache 2.2 인 경우는 /etc/apache2/apache2.conf 하단에 아래와 같이 추가한다.
ScriptAlias /viewvc /opt/viewvc/bin/cgi/viewvc.cgi
# ScriptAlias /query /opt/viewvc/bin/cgi/query.cgi
<Location /viewvc>
AuthType Basic
AuthName "Subversion Authentication"
AuthBasicProvider ldap
AuthLDAPURL "ldap://127.0.0.1:389/dc=example,dc=com?uid?sub?(objectClass=*)"
AuthzLDAPAuthoritative off
require valid-user
</Location>
<Location /svn>
DAV svn
SVNParentPath /opt/svn
SVNListParentPath on
AuthType Basic
AuthName "Subversion Authentication"
AuthBasicProvider ldap
AuthLDAPURL "ldap://127.0.0.1:389/dc=example,dc=com?uid?sub?(objectClass=*)"
AuthzLDAPAuthoritative off
require valid-user
</Location>