[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: Dag-Erling Smørgrav <des_at_des.no>
Date: 2006-02-17 13:28:23 CET

Ryan Schmidt <subversion-2006Q1@ryandesign.com> writes:
> I had tried using Alias and RewriteRule but it seemed that the
> Location directive took precedence. Dag-Erling, please feel free to
> try it and let us know if you get better results.

Here's a patch against Subversion 1.3.0. Apply, recompile, reinstall,
stick the following in your apache conf before restarting:

RedirectMatch ^/$ /index.html
<Location ~ "^/(?!favicon|index|svnindex)">
  DAV svn
  SVNRootURI /
  SVNParentPath /var/lib/svn
  SVNIndexXSLT "/svnindex.xsl"
    Require valid-user

(note that apachectl graceful won't do since you need to reload the

The only caveat with this method is that / does not automatically
resolve into /index.html, hence the explicit redirect.

The final hunk may be redundant if dav_svn_resource_kind() never gets
called directly but only through dav_svn_get_resource(). I don't know
enough about mod_dav{,_svn} to tell, though.


Dag-Erling Smørgrav - des@des.no

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Received on Fri Feb 17 13:31:13 2006

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