[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: Tue, 22 Oct 2013 17:04:02 -0500

On Oct 22, 2013, at 11:04, "Cooke, Mark" <mark.cooke_at_siemens.com> wrote:

> I am not sure I understand. Do you want to use `SVNParentPath` to serve a group of repositories without actually revealing the list of repo names? You should be able to do that be editing the style sheet to not list the actual names but then how are your users going to find their repos?

I don't think so, because the XML data and the XSLT stylesheet are both sent to the browser which puts them together to display them; a user could easily circumvent a stylesheet by viewing the XML source directly.

If you're using SVNParentPath but don't want to show the list of repositories, you simply don't set "SVNListParentPath on".

The directive "Alias /repos /srv/svn/html" matches all locations that *begin* with "/repos"; sounds like what you really want is to match only the locations "/repos" and "/repos/" exactly. For that you should be able to use something like:

AliasMatch ^/repos/?$ /srv/svn/html

Or:

RedirectMatch permanent ^/repos$ /repos/
AliasMatch ^/repos/$ /srv/svn/html

If the index.html page in that directory references any assets (stylesheets, images) in the same folder they won't work because the AliasMatch doesn't know about them. You could either list those assets in the AliasMatch too, or just reference assets from elsewhere on your server.
Received on 2013-10-23 00:04:49 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.