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

RE: Can't access Collection of Repositories page

From: Johan Corveleyn <johan.corveleyn_at_uz.kuleuven.ac.be>
Date: Mon, 31 Aug 2009 13:26:45 +0200

> Van: Lynn Lin [mailto:lynnos_at_tong-ji.org]
>
> All,
>
> I setup subversion server with apache2 under windows and
> Linux,I encounter the problem "Can't access Collection of
> Repositories" page (SVNParentPath)
>
> the directory layout:
>
> /home/lynn/svn
> /home/lynn/svn/project1
> /home/lynn/svn/project2
>
> I access http://{server}/svn,it ask me user/passwd and I type
> user/passwd(which is generated by htpasswd),the page tell me
>
>
>
>
>
> 403 Forbidden
>
>
> Forbidden
>
>
> You don't have permission to access /svn on this server.
>
>
>
>
> if I access http://{server}/svn/project1 and after I type
> user/passwd I can get the page
>
> the following is the configuration
>
>
> <Location /svn>
> DAV svn
> SVNParentPath /home/lynn/svn
> SVNListParentPath on
> AuthType Basic
> AuthName "Subversion Repository"
> AuthUserFile /etc/apache2/dav_svn.passwd
>
> AuthzSVNAccessFile /etc/apache2/dav_svn.authz
>
> Require valid-user
>
>
> </Location>
>
> the dav_svn.authz file content:
>
> [/] *=r
> [project1:/]
> lynn = rw
>

Do you also get a 403 Forbidden if you browse to http://{server}/svn/ as opposed to http://{server}/svn (so, adding a trailing slash)?

You might need to add a trailing slash to your Location block in the httpd.conf:
<Location /svn/>
...
</Location>

Following mailinglist thread may also be helpful (contains also a workaround for the Forbidden when the request does not contain a trailing slash):
http://svn.haxx.se/users/archive-2006-01/0273.shtml

Regards,
Johan

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2388855

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-08-31 13:28:25 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.