You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Santhosh Raghunath <sr...@adteractive.com> on 2006/09/15 16:45:26 UTC

Listing Respositories on ver 1.4.0

We would like to display a listing of the repositories under svn root.

 

Here is how our Apache httpd.conf <location> section configured as:

---------------------------------------------------

DocumentRoot "/usr/local/apache2_0_59/htdocs"

 

## Subversion stuff

<Location /svn>

  DAV svn

 

  SVNParentPath /home/svn/repositories

  SVNListParentPath on

  # authenticate

  AuthType Basic

  AuthName "Subversion repository"

  AuthUserFile /usr/local/apache2_0_59/conf/svn_htaccess

 

  # only authenticated users may access the repository

  Require valid-user

 

  # subversion auth/access control

  AuthzSVNAccessFile /home/svn/web/svn_authorization

 

  # for pretty display of src on a browser

  SVNIndexXSLT "/svnindex.xsl"

</Location>

-------------------------------------------------------

 

 

 

When we try to open the URL : http://svn.<domain>:81/svn/  there is an
error on browser:

 

      Forbidden

      You don't have permission to access /svn/ on this server.

 

The environment is Subversion 1.4.0 running with Apache 2.0.59 on Red
Hat Linux AS release 3 (Taroon)

 

 

~Santhosh

 

Santhosh Raghunath

 

 


Re: Listing Respositories on ver 1.4.0

Posted by Lieven Govaerts <sv...@mobsol.be>.
Santhosh Raghunath wrote:
>
> We would like to display a listing of the repositories under svn root.
>
>  
>
> Here is how our Apache httpd.conf <location> section configured as:
>
> ---------------------------------------------------
>
> DocumentRoot "/usr/local/apache2_0_59/htdocs"
>
>  
>
> ## Subversion stuff
>
> <Location /svn>
>
>   DAV svn
>
>  
>
>   SVNParentPath /home/svn/repositories
>
>   SVNListParentPath on
>
>   # authenticate
>
>   AuthType Basic
>
>   AuthName "Subversion repository"
>
>   AuthUserFile /usr/local/apache2_0_59/conf/svn_htaccess
>
>  
>
>   # only authenticated users may access the repository
>
>   Require valid-user
>
>  
>
>   # subversion auth/access control
>
>   AuthzSVNAccessFile /home/svn/web/svn_authorization
>
>  
>
>   # for pretty display of src on a browser
>
>   SVNIndexXSLT "/svnindex.xsl"
>
> </Location>
>
> -------------------------------------------------------
>
>  
>
>  
>
>  
>
> When we try to open the URL : http://svn.<domain>:81/svn/  there is an 
> error on browser:
>
>  
>
>       Forbidden
>
>       You don't have permission to access /svn/ on this server.
>
>  
>
> The environment is Subversion 1.4.0 running with Apache 2.0.59 on Red 
> Hat Linux AS release 3 (Taroon)
>
Santhish,

this thread on the users mailing list archive has a solution for your 
problem:
http://svn.haxx.se/users/archive-2006-01/0050.shtml

In short, when you use SVNListParentPath together with 
AuthzSVNAccessFile you need to specify your Location with a '/' in the end:

<Location /svn/>
...

hope this helps,

Lieven.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org