[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: nested Location warning

From: Ryan Schmidt <subversion-2012c_at_ryandesign.com>
Date: Thu, 24 Oct 2013 05:03:11 -0500

On Oct 24, 2013, at 03:59, Chris Rodgers <christopher.rodgers_at_cardiov.ox.ac.uk> wrote:

> I am trying to serve a number of repositories from one server via https with different IP range restrictions applied to each. I do not want to show the names of the repositories to clients requesting https://server/repos/ .
>
> I am getting warnings like this in my logs and wanted to know if they matter.
>
>> [Thu Oct 24 09:52:58.087560 2013] [:warn] [pid 23502] mod_dav_svn: nested Location '/repos/thereponame' hinders access to '' in SVNPath Location '/repos/thereponame'
>
> In light of your helpful suggestions, I have removed all mentions of "/repos" from the httpd config. I now have a set of blocks like this, one per repository:
>
>> <IfModule mod_dav_svn.c>
>>
>> <Location /repos/thereponame>
>> DAV svn
>> SVNPath /srv/svn/repos/thereponame
>> SVNIndexXSLT "/repos-web/view/repos-thereponame.xsl"
>>
>> # Include per-directory access control policy
>> AuthzSVNAccessFile /srv/svn/user_access/thereponame_authz
>>
>> # Require SSL connection for password protection.
>> SSLRequireSSL
>>
>> AuthType Basic
>> AuthName "Authorization Realm"
>> AuthUserFile /srv/svn/user_access/thereponame_passwd
>> Require valid-user
>> </Location>
>>
>> </IfModule>
>
> And I still get the warnings!
>
> Is there something wrong with my config or should I simply ignore the warnings…?

There’s either something wrong with your config, or with the Subversion code that checks for this nested condition. I haven’t run into the error before.

The portion of config you showed looks fine. Are there other SVNPath or SVNParentPath directives elsewhere in your config that overlap the one you showed?

What’s the DocumentRoot for the virtual host these directives occur in—is it any portion of /srv/svn/repos?
Received on 2013-10-24 12:03:53 CEST

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.