You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Szymon Guz <al...@skynet.org.pl> on 2004/07/16 11:07:53 UTC

Apache and .htaccess files

Hi,
I try to set subversion under Apache2 (SuSE91) and I cannot do one thing:
how to set permissions for a repository in .htaccess files ?

When I write sth like this in httpd.conf :

<Location /svn/rep1>
  Dav svn
  SVNPath /srv/www/svn/rep1

  AuthName "Administration"
  AuthType Basic
  AuthUserFile /srv/www/svn-auth/rep1.auth
  require valid-user
</Location>

all seems to work properly. But when I set this like this:


<Location /svn>
  Dav svn
  SVNParentPath /srv/www/svn
</Location>

and place in directory /srv/www/svn/rep1 a .htaccess file in which I have
this:

AuthName "Administration"
AuthType Basic
AuthUserFile /srv/www/svn-auth/rep1.auth
require valid-user

everything seems not to work and I can read the repository as anonymous
user. Howto set this in the way that I can create new repositories without
restarting Apache and i can set different rights for different users to
them ??

Szymon Guz



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

Re: Apache and .htaccess files

Posted by Ben Collins-Sussman <su...@collab.net>.
On Fri, 2004-07-16 at 06:07, Szymon Guz wrote:

> everything seems not to work and I can read the repository as anonymous
> user. Howto set this in the way that I can create new repositories without
> restarting Apache and i can set different rights for different users to
> them ??

Use the SVNParentPath directive and mod_authz_svn module.  All explained
in chapter 6.



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