Apache override in sub-location

Posted by Atmocreations on Server Fault See other posts from Server Fault or by Atmocreations
Published on 2012-03-22T07:30:31Z Indexed on 2012/03/22 11:31 UTC
Read the original article Hit count: 253

Filed under:
|

This is my Apache vHost-configuration:

<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>

This works perfectly. But I would now like to add a web-frontend for the subversion server. I therefore added the lines

    <Location "/web">
            DAV off
            Order allow,deny
            Allow from all
    </Location>

But they don't work, as the <Location "/">...</Location> part is directing the requests to the SVN/DAV module. Therefore, apache tells that it couldn't open the requested SVN-filsystem.

Does anybody know how to override this setting? Any hint is appreciated.

© Server Fault or respective owner

Related posts about apache2

Related posts about svn