mod_dav_svn: nested Location '/svn' hinders access to '' in SVNPath Location '/svn'

759 views
Skip to first unread message

Manju C

unread,
Mar 21, 2016, 8:49:38 AM3/21/16
to us...@subversion.apache.org
Hi Team,

We recently upgraded subversion from 1.6 version to 1.8 version on RHEL 5.8.
After upgrade we are getting below warning in error_log file and we are
getting access denied error when we try to access projects thru URL and
forbidden error when we checkout using client. Before upgrade everything was
working fine.

"mod_dav_svn: nested Location '/svn' hinders access to '' in SVNPath
Location '/svn'"

<Location /svn>
DAV svn
#AuthLDAPEnabled on
SVNListParentPath on
SVNAutoversioning on
SVNReposName "svn repository"
SVNParentPath /u10/~~~~~~~~/svnrepositories
AuthType Basic
AuthName "Subversion"
#AuthExternal ldap_auth
#Require valid-user

AuthzLDAPAuthoritative on
AuthType Basic
AuthBasicProvider ldap
AuthName "Subversion"
AuthLDAPBindDN "cn=~~,l=~~,dc=~~,dc=com"
AuthLDAPBindPassword pass
AuthLDAPURL "LDAP URL"
Require valid-user

AuthzSVNAccessFile /u10/~~~~~~~~/svnauthfile
</Location>

I am new to SVN. Could someone please help me to resolve this issue.


Thanks





--
View this message in context: http://subversion.1072662.n5.nabble.com/mod-dav-svn-nested-Location-svn-hinders-access-to-in-SVNPath-Location-svn-tp196311.html
Sent from the Subversion Users mailing list archive at Nabble.com.

Daniel Shahaf

unread,
Mar 21, 2016, 12:08:24 PM3/21/16
to Manju C, us...@subversion.apache.org
Manju C wrote on Mon, Mar 21, 2016 at 05:17:01 -0700:
> "mod_dav_svn: nested Location '/svn' hinders access to '' in SVNPath
> Location '/svn'"

It means you have two <Location> directives, either two <Location /svn>
or a <Location /svn> and a <Location />, that both contain a "DAV svn"
directive.

Manju C

unread,
Mar 22, 2016, 7:36:18 AM3/22/16
to us...@subversion.apache.org

Yes, We had two <Location> directives, <Location /svn> and <Location
/svn_old>. we removed the <Location /svn_old> still same issue.

But if we change the <Location /svn> to <Location /> or <Location /repos>
even to <Location /SVN> its working fine.





--
View this message in context: http://subversion.1072662.n5.nabble.com/mod-dav-svn-nested-Location-svn-hinders-access-to-in-SVNPath-Location-svn-tp196311p196328.html

Branko Čibej

unread,
Mar 22, 2016, 7:49:49 AM3/22/16
to us...@subversion.apache.org
On 22.03.2016 12:36, Manju C wrote:
> Yes, We had two <Location> directives, <Location /svn> and <Location
> /svn_old>. we removed the <Location /svn_old> still same issue.
>
> But if we change the <Location /svn> to <Location /> or <Location /repos>
> even to <Location /SVN> its working fine.

/svn is a proper prefix of /svn_old, that's what's confusing httpd. Your
Location directives should read:

<Location /svn/>
...
</Location>

and

<Location /svn_old/>
...
</Location>


That is, you should include the trailing slash.


-- Brane

Reply all
Reply to author
Forward
0 new messages