Re: Query about warnings: mod_dav_svn: nested Location '/repos/reponame' hinders access to '' in SVNPath Location '/repos/reponame'
Chris Rodgers wrote on Thu, 05 Oct 2017 11:31 +0100:
> > [Thu Oct 05 10:53:19.131284 2017] [:warn] [pid 30014] mod_dav_svn:
> > nested Location '/repos/reponame' hinders access to '' in SVNPath
> > Location '/repos/reponame'
This error means that you have two <Location /repos/reponame> blocks
with SVNPath directives. It is worded this way because it's written
with <Location /foo> and <Location /foo/bar> pairs in mind.
This might just mean that subversion.conf is included twice into httpd.conf.
> How can I suppress this warning? / Does it matter?
You can suppress the warning by ensuring that every possible /foo/bar
URL path belongs to at most one SVNPath/SVNParentPath <Location>
scope. I'm not familiar enough with httpd internals to answer the
Yes, Subversion internally always strips trailing slashes. (This
actually happens in the client before it calls into the libraries.) That's
why adding the trailing slash breaks the repository root URL: it makes
the Location block not match it.