[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Cannot use "/svn/" for location of SVNParentPath

From: Jonathan Coles <jcoles0727_at_rogers.com>
Date: Tue, 09 Sep 2008 21:02:44 -0400

Thanks, Ryan.

I didn't realize that Apache reads all files in conf.d, not just *.conf.
My old locations definition file, renamed with a .bak extension,
contains SVNPath definitions. That must have caused a conflict when
creating a parent path with that name and of course, it explains why the
/svn/ paths to existing repositories continued to work. I added "~" to
the end of my .bak file, making it a backup which Apache seems to know
enough to ignore.

Silly mistake. But now everything works as expected.

Thanks.

Ryan Schmidt wrote:
> On Sep 9, 2008, at 7:27 PM, Jonathan Coles wrote:
>
>> SVNParentPath will not work if my Location is '/svn/'. Other names
>> are OK.
>>
>> I have a some repositories under /home/svn/docrepos. My Location
>> statement is:
>>
>> <Location /svn/>
>> DAV svn
>> SVNParentPath /home/svn/docrepos
>> ....
>> </Location>
>>
>> When I try to gain access using the URL
>> "http://<server>/svn/myproduct", I get the "Could not open the
>> requested SVN filesystem" error. The Apache error log includes "Can't
>> open file '/home/svn/docrepos/svn/format'.." (Surely the correct path
>> would be '/home/svn/docrepos/myproduct/format'.)
>>
>> If I change the Location to something else, '/repos/' for example, I
>> have no problem accessing my repository with the URL
>> "http://<server>/repos/myproduct". This is as expected and tells me
>> my configuration is correct. But all I changed was a name. Is there
>> something special about the name "svn"? There is no web content with
>> that name to cause a conflict.
>>
>> Even more strange, I can now also access my repository using the URL
>> "http://<server>/svn/myproduct". That makes no sense at all! There is
>> nothing to link that location with the repository!
>>
>> Any idea what is going on here?
>
> You're saying you can access your repository using
> http://<server>/svn/myproduct even though there is no <Location /svn/>
> directive?
>
> I assume someone else already set up a <Location /svn/> directive for
> you and you just don't know it. Maybe another administrator, or maybe
> your OS distribution provided it. Search *all* your Apache
> configuration files, not just the main httpd.conf but also all extra
> conf files it might include.
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-09-10 03:03:21 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.