这是我的Apache vHostconfiguration:
<VirtualHost subversion.domain.com:80> ServerAdmin [email protected] ServerName servername.domain.com Documentroot /srv/www/htdocs/svn ErrorLog /var/log/apache2/subversion-error_log CustomLog /var/log/apache2/subversion-access_log combined HostnameLookups Off UseCanonicalName Off ServerSignature Off <Location "/"> AuthBasicProvider ldap AuthType Basic AuthzLDAPAuthoritative on AuthName "SVN" AuthLDAPURL "ldap://myldapurl/..." NONE AuthLDAPBindDN "mybinddn" AuthLDAPBindPassword mypwd DAV svn SVNParentPath /svn/ SVNListParentPath on require ldap-group groupname Order allow,deny Allow from all </Location> </VirtualHost>
这完美的作品。 但是我现在想为subversion服务器添加一个web-front。 因此,我添加了行
<Location "/web"> DAV off Order allow,deny Allow from all </Location>
但是它们不起作用,因为<Location "/">...</Location>部分将请求引导到SVN / DAV模块。 因此,Apache告诉它无法打开请求的SVN-filsystem。
有谁知道如何覆盖这个设置? 任何暗示是赞赏。
你不能。 AFAIK,已经填充到Apache的错误(无法从SE中的某个地方回忆主题的URL,偶然在前几天看到)