You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Lynn Lin <ly...@tong-ji.org> on 2009/08/31 08:08:04 UTC

Can't access Collection of Repositories page

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 ForbiddenForbidden

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

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: Can't access Collection of Repositories page

Posted by javajohn <ja...@cox.net>.
On Aug 31, 2009, at 1:08 AM, Lynn Lin wrote:

> All,
>
>      I setup subversion server with apache2 under windows and  
> Linux,I encounter the problem "Can't access Collection of  
> Repositories" page (SVNParentPath)
>
> the dav_svn.authz file content:
>
> [/] *=r
> [project1:/]
> lynn = rw
>
>

Perhaps you have to have a newline after [/]?:

[/]
* = r
[project:/]
lynn = rw

These types of errors can be difficult to spot.

-----
John

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

RE: Can't access Collection of Repositories page

Posted by Johan Corveleyn <jo...@uz.kuleuven.ac.be>.
> Van: Lynn Lin [mailto:lynnos@tong-ji.org]
> ---------- Forwarded message ----------
> From: Lynn Lin <ly...@tong-ji.org>
> Date: 2009/9/1
> Subject: Re: Can't access Collection of Repositories page
> To: Johan Corveleyn <jo...@uz.kuleuven.ac.be>
> 
> 2009/8/31 Johan Corveleyn <jo...@uz.kuleuven.ac.be>
[snip]
> 
> 	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)?
> 
> 
> 
>   still get a 403 Forbidden error
> 

Did you try the suggestions from the mailthread I mentioned here below?
- Add a trailing slash in the Location block (<Location /svn/>)
- Use mod_rewrite to add the trailing slash to requests that don't have it.

Oh and don't forget to restart Apache after changing the configuration.

Johan

> 
> 
> 	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=2389762

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].


Fwd: Can't access Collection of Repositories page

Posted by Lynn Lin <ly...@tong-ji.org>.
---------- Forwarded message ----------
From: Lynn Lin <ly...@tong-ji.org>
Date: 2009/9/1
Subject: Re: Can't access Collection of Repositories page
To: Johan Corveleyn <jo...@uz.kuleuven.ac.be>




2009/8/31 Johan Corveleyn <jo...@uz.kuleuven.ac.be>

> Van: Lynn Lin [mailto:lynnos@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)?
>

  still get a 403 Forbidden error


>
> 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=2389595

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

RE: Can't access Collection of Repositories page

Posted by Johan Corveleyn <jo...@uz.kuleuven.ac.be>.
> Van: Lynn Lin [mailto:lynnos@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@subversion.tigris.org].