[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: mod_dav_svn as root

From: Ryan Schmidt <subversion-2006Q1_at_ryandesign.com>
Date: 2006-02-17 00:59:10 CET

On Feb 16, 2006, at 19:39, Dag-Erling Smørgrav wrote:

> The problem is that the document root also needs to contain some
> regular files (favicon.ico, index.html, svnindex.* etc.), and I can't
> figure out how to tell Apache to special-case them. For instance, the
> following doesn't work:
>
> <Location />
> DAV svn
> SVNParentPath /var/lib/svn
> SVNIndexXSLT "/svnindex.xsl"
> <LimitExcept GET PROPFIND OPTIONS REPORT>
> Require valid-user
> </LimitExcept>
> </Location>
>
> <Location ~ "^/(favicon|index|svnindex)">
> DAV off
> SetHandler default-handler
> Order deny,allow
> Allow from all
> </Location>
>
> The actual repo browsing part works fine, but it can't access the
> stylesheet, and tries to treat favicon.ico as a Subversion repo.

This should do it:

<VirtualHost *:80>
        ServerName svn.example.com
        DocumentRoot /wherever/you/have/your/favicon/svnindex/etc
        <LocationMatch ^/(?!favicon\.ico|index\.html|svnindex\.xsl)>
                DAV svn
                SVNParentPath /var/lib/svn
                SVNIndexXSLT /svnindex.xsl
                <LimitExcept GET PROPFIND OPTIONS REPORT>
                        Require valid-user
                </LimitExcept>
        </LocationMatch>
</VirtualHost>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Feb 17 01:07:00 2006

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.