Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have setup subversion according to this how to: http://www.howtogeek.com/howto/ubuntu/install-subversion-with-web-access-on-ubuntu/

So in the root directory of my server I have following folder: /var/snv. This folder will contain my svn repositories that I create this way

sudo svnadmin create /var/svn/myproject

Next I edited the dav_svn.conf file.

<Location /var/svn>

  DAV svn

  SVNParentPath /var/svn

  AuthType Basic
  Require valid-user
  AuthName "Subversion Repository"
  AuthUserFile /etc/apache2/dav_svn.passwd

</Location>

I try to access subversion via browser with http://myRootServer.com/var/svn. This asks me for username and password and when entering the correct data I get a 403 Forbidden error, You don't have permission to access /var/svn on this server.

Any ideas whats wrong?

share|improve this question

2 Answers 2

up vote 2 down vote accepted

When specifying an SVNParentPath, the actual location of the path (in this case, /var/svn/) isn't a valid location to request - there's no mechanism for serving an index of the child repositories.

A request to a child repository directly (/var/svn/myproject) should yield an index page for that repository, and should not be giving a 403 after successful authentication.

share|improve this answer

You can absolutely display a list of repositories using SVNParentPath.

You need to add the following to your apache configuration:

SVNListParentPath on
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.