Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I want to setup SVN in such a way that svn.domain.com/ directly lists SVN repositories. To be able to make the web view nicer I am using an SVNIndexXSLT. But I have to serve this file somehow to the end-user.

So I want to setup a location (/repos-web for example) that will serve files, instead of svn.

I currently have the following configuration:

<VirtualHost *:80>
        ServerName svn.domain.com
        DocumentRoot /home/user/svn/svnweb
        ErrorLog ${APACHE_LOG_DIR}/error.log
        <Location />
                AuthType Basic
                AuthName "Authentication required"
                AuthUserFile "myauthfile"
                Require valid-user
                order allow,deny
                allow from all

                DAV svn
                SVNParentPath /home/user/svn/repositories
                SVNListParentPath on
                SVNIndexXSLT "/repos-web/view/repos.xsl"
        </Location>
        <Location /repos-web>
                DAV off
        </Location>
</VirtualHost>

But http://svn.domain.com/repos-web simply returns:

Could not open the requested SVN filesystem

I tried changing the <Location /> in <LocationMatch "^/(?!repos-web)"> but this did not help at all.

Of course one solution would be to serve the xslt file over another domain/subdomain, but this is more a workaround than solution.

share|improve this question
add comment

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.