On 21.06.2005, at 05:13, Simon Gardner wrote:
>
> I have a question regarding the location tag. We have Subversion
> working fine with apache, our apache .conf file location tag looks
> something like this:
>
> <Location /Repos>
> Order Allow,Deny
> Allow From all
> Dav svn
> SVNParentPath /versioncontrol/repositories
> Require valid-user
> PasswdFile %%LDAP%%
> AuthType Basic
> AuthName "Version Control"
> LDAPConfigFile /versioncontrol/repositories /ldap.conf
> AuthzSVNAccessFile /versioncontrol/repositories /auth.conf
> </Location>
>
> …so now I can access this using http://MyServer/Repos/MyRepository.
>
> My boss however has tried to access it like this: http://MyServer/
> repos/MyRepository [snip]
>
> [snip] why [is] the URL is case sensitive. The confusing thing is
> that when you try to access with the latter, you are asked to log
> in, indicating the Location tag is case insensitive and has been
> entered but then fails.
That doesn't seem right. The Location tag *is* case-sensitive. URLs
are case-sensitive. That's just the way (most) web servers (including
Apache) are. If you wanted it not to be, you might be able to do this:
<LocationMatch "^/[Rr][Ee][Pp][Oo][Ss]">
But I haven't tried that.
I can't imagine why you're being asked to log in, since your
<Location> isn't matching. Unless you've duplicated your <Location>
but this time specified <Location />. If not, then I can't explain it.
> The error from apache is:
>
> [Tue Jun 21 12:55:46 2005] [info] [client 10.58.5.166] Access
> granted: 'sgardner' GET repos:/Test
>
> [Tue Jun 21 12:55:46 2005] [error] [client 10.58.5.166] (20014)
> Error string not specified yet: Can't open file '/versioncontrol/
> repositories/repos/format': No such path or directory.
Here, it thinks the repository name is "repos" and the path within it
that you want to access is "/Test". That's not right, of course, but
it again suggests that there's another <Location> directive that it
is matching where the same SVNParentPath is defined.
> …the log on a correct login is:
>
> [Tue Jun 21 12:55:50 2005] [info] [client 10.1.1.38] Access
> granted: 'sgardner' GET Test:/
Yes, that looks better: here it knows that the repository name is
"Test" and that you're trying to access its root path "/".
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Jun 21 15:20:50 2005