You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Phil Lawrence <pr...@Lehigh.EDU> on 2005/06/07 18:27:32 UTC

auto index for / ?

I want multiple repositories, ala:
   /var/svn/rep1
   /var/svn/rep2

I know how to make:
   <Location /rep1>
and
   <Location /rep2>

but what do I do for:
   <Location />

???

Right now it just pulls up the Apache test page...  Is there a way to 
make it read-only DAV or something so that my authenticated users can 
navigate from the root to their desired repository?

This did not work:

<Directory /var/svn>
   # read-only DAV access to list of svn repositories
   Dav On
   Require valid-user
   AuthType Basic
   AuthName "AD Lookup"
   AuthLDAPURL ldap://...
   <LimitExcept GET POST OPTIONS PROPFIND>
     Order allow,deny
     Deny from all
   </LimitExcept>
</Directory>

Thanks,
Phil

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

Re: auto index for / ?

Posted by Frank Gruman <fg...@verizon.net>.
Here's a little page compliments of the TortoiseSVN documentation 
(http://tortoisesvn.tigris.org/docs/TortoiseSVN_en/ch03.html#tsvn-serversetup-apache-5)
<!--  I've added this so that hopefully your email client doesn't try to 
display any HTML

<html>
<head>
<title>Subversion Repositories</title>
</head>
<body>

<h2>Subversion Repositories</h2>
<p>
<?php
    $svnparentpath = "C:/svn";
    $svnparenturl = "/svn";

    $dh = opendir( $svnparentpath );
    if( $dh ) {
        while( $dir = readdir( $dh ) ) {
            $svndir = $svnparentpath . "/" . $dir;
            $svndbdir = $svndir . "/db";
            $svnfstypefile = $svndbdir . "/fs-type";
            if( is_dir( $svndir ) && is_dir( $svndbdir ) ) {
                echo "<a href=\"" . $svnparenturl . "/" .
                        $dir . "\">" . $dir . "</a>\n";
                if( file_exists( $svnfstypefile ) ) {
                    $handle = fopen ("$svnfstypefile", "r");
                    $buffer = fgets($handle, 4096);
                    fclose( $handle );
                    $buffer = chop( $buffer );
                    if( strcmp( $buffer, "fsfs" )==0 ) {
                        echo " (FSFS) <br />\n";
                    } else {
                        echo " (BDB) <br />\n";
                    }
                } else {
                    echo " (BDB) <br />\n";
                }
            }
        }
        closedir( $dh );
    }
?>
</p>

</body>
</html>

Hopefully your email client allowed you to see the previous code -->

Place the above file in your web root folder (DocumentRoot) and away you 
go.  I've customized mine to be a full portal for all of my code/bug 
tracking software (Subversion, ViewCVS, Bugzilla, SVNManager) so that I 
essentially only have to give out one URL to others, and they can get 
all the information they need to access the repositories.  The only 
intervention I have to make is to actually grant them repository permission.

In the example you gave, the ideal configuration would be to create a 
single <Location> directive and use SVNParentPath.  If each repository 
requires separate permissions, these can be configured in a file 
specifed using the AuthzSVNAccessFile directive (see 
http://svnbook.red-bean.com/en/1.0/ch06s04.html for a more detailed 
example).

Hope that helps!!
Frank

Phil Lawrence wrote:

> I want multiple repositories, ala:
>   /var/svn/rep1
>   /var/svn/rep2
>
> I know how to make:
>   <Location /rep1>
> and
>   <Location /rep2>
>
> but what do I do for:
>   <Location />
>
> ???
>
> Right now it just pulls up the Apache test page...  Is there a way to 
> make it read-only DAV or something so that my authenticated users can 
> navigate from the root to their desired repository?
>
> This did not work:
>
> <Directory /var/svn>
>   # read-only DAV access to list of svn repositories
>   Dav On
>   Require valid-user
>   AuthType Basic
>   AuthName "AD Lookup"
>   AuthLDAPURL ldap://...
>   <LimitExcept GET POST OPTIONS PROPFIND>
>     Order allow,deny
>     Deny from all
>   </LimitExcept>
> </Directory>
>
> Thanks,
> Phil
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>

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