Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

This is my Apache vHost-configuration:

<VirtualHost subversion.domain.com:80>
    ServerAdmin changed@domain.com
    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.

share|improve this question
    
exactly what kind of front end are you looking for? there is already a usable frontend to svn provided by collabnet. Is this a custom webpage you want to display in front of the source browser? –  Jason Huntley Mar 22 '12 at 18:53

1 Answer 1

up vote 2 down vote accepted

You can not. AFAIK, bug already filled to Apache (can't recall URL from topic somewhere in the SE, saw some days ago accidentally)

share|improve this answer
    
thank you for your reply. Okay... Maybe I can modify the question: can I change the part <Location "/">...</Location> to an expression like "everything except '/web' " ? –  Atmocreations Mar 22 '12 at 11:28
    
@Atmocreations - no, LocationMatch (which you imply) namely was mentioned as non-functional in relation to mod_dav –  Lazy Badger Mar 22 '12 at 11:37
    
Ah... means this is a DAV-problem? What about to move the svn/dav-part to <Location /svn> and then create a proxy which redirects / to /svn. Would this work? If yes, what's the easiest way to do it? –  Atmocreations Mar 22 '12 at 12:44
    
proxy is overkill and may affect svn commands, which will produce 301 error on / access. Maybe /svn (or any other location at the same level as web) will be better? Not nice URL, but less headache –  Lazy Badger Mar 22 '12 at 13:05
    
@Atmocreations - some links, probably related to dicussion: stackoverflow.com/questions/665799/locationmatch-and-dav-svn + issues.apache.org/bugzilla/show_bug.cgi?id=35077 (see at report-date) –  Lazy Badger Mar 23 '12 at 5:11

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.