[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Cannot get SVN 1.5 HTTPS server working...

From: Robert Dailey <rcdailey_at_gmail.com>
Date: Tue, 10 Jun 2008 19:25:33 -0500

On Tue, Jun 10, 2008 at 3:50 PM, Holger Stratmann <tigris_at_finch.de> wrote:
>
>>> Please show us the section from your Apache-configuration where you set
>>> up
>>> Subversion.
>>> It should probably be a LOCATION-directive.
>>>
>>> You DID configure Subversion, right?
>>
>> Emphasize what you mean please. What configuration do I need to show
>> you? What was I supposed to configure for Subversion?
>
> http://svnbook.red-bean.com/nightly/en/svn.serverconfig.httpd.html
>
> Given that you know the book, I assume you've read this section?
>
> What I mean is something like
>
> <Location /repos>
> DAV svn
> SVNPath /var/svn/repository
> </Location>
>
> or
>
> <Location /svn>
> DAV svn
>
> # any "/svn/foo" URL will map to a repository /var/svn/foo
> SVNParentPath /var/svn
> </Location>
>
>
>
>
>
>

Sorry, I actually pasted the wrong file in that last email. I think
the file you wanted to see was in
/etc/apache2/mods-available/dav_svn.conf:

# dav_svn.conf - Example Subversion/Apache configuration
#
# For details and further options see the Apache user manual and
# the Subversion book.
#
# NOTE: for a setup with multiple vhosts, you will want to do this
# configuration in /etc/apache2/sites-available/*, not here.

# <Location URL> ... </Location>
# URL controls how the repository appears to the outside world.
# In this example clients access the repository as http://hostname/svn/
# Note, a literal /svn should NOT exist in your document root.
<Location /svn>

  # Uncomment this to enable the repository
  DAV svn

  # Set this to the path to your repository
  #SVNPath /svn_root
  # Alternatively, use SVNParentPath if you have multiple repositories under
  # under a single directory (/var/lib/svn/repo1, /var/lib/svn/repo2, ...).
  # You need either SVNPath and SVNParentPath, but not both.
  SVNParentPath /svn_root

  # Access control is done at 3 levels: (1) Apache authentication, via
  # any of several methods. A "Basic Auth" section is commented out
  # below. (2) Apache <Limit> and <LimitExcept>, also commented out
  # below. (3) mod_authz_svn is a svn-specific authorization module
  # which offers fine-grained read/write access control for paths
  # within a repository. (The first two layers are coarse-grained; you
  # can only enable/disable access to an entire repository.) Note that
  # mod_authz_svn is noticeably slower than the other two layers, so if
  # you don't need the fine-grained control, don't configure it.

  # Basic Authentication is repository-wide. It is not secure unless
  # you are using https. See the 'htpasswd' command to create and
  # manage the password file - and the documentation for the
  # 'auth_basic' and 'authn_file' modules, which you will need for this
  # (enable them with 'a2enmod').
  AuthType Basic
  AuthName "Subversion Repository"
  AuthUserFile /etc/apache2/dav_svn.passwd

  Require valid-user

  # To enable authorization via mod_authz_svn
  #AuthzSVNAccessFile /etc/apache2/dav_svn.authz

  # The following three lines allow anonymous read, but make
  # committers authenticate themselves. It requires the 'authz_user'
  # module (enable it with 'a2enmod').
  #<LimitExcept GET PROPFIND OPTIONS REPORT>
    #Require valid-user
  #</LimitExcept>

</Location>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-06-11 02:25:52 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.