用于SVN和LDAP的Apache URL变量
这更多的是一个与Apache如何处理变量和setenif指令有关的问题。我有一个位于的Subversion服务器,其SVN配置如下:用于SVN和LDAP的Apache URL变量,apache,svn,setenv,Apache,Svn,Setenv,这更多的是一个与Apache如何处理变量和setenif指令有关的问题。我有一个位于的Subversion服务器,其SVN配置如下: <Location /svn> DAV svn SVNParentPath /path/to/repo/base AuthzSVNAccessFile /path/to/access AuthName "LDAP Auth" AuthBasicProvider ldap AuthType Basic
<Location /svn>
DAV svn
SVNParentPath /path/to/repo/base
AuthzSVNAccessFile /path/to/access
AuthName "LDAP Auth"
AuthBasicProvider ldap
AuthType Basic
AuthzLDAPAuthoritative off
AuthLDAPURL "ldap://172.20.20.20:389/dc=test,dc=net?uid" NONE
AuthLDAPBindDN "cn=svn,ou=system,dc=test,dc=net"
AuthLDAPBindPassword secret
Require valid-user
</Location>
SetEnvIf Request_URI "http://test.net/svn/$1/.*" repo-name=$1
...
...
Require ldap-group cn=$repo-name,ou=system,dc=test,dc=net