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