From 26c2c70c44af1e9f6970312983b4f36284406e63 Mon Sep 17 00:00:00 2001 From: Alex Dehnert Date: Mon, 1 Mar 2010 05:40:01 +0000 Subject: [PATCH] Install mod_dav_svn and enable it --- mods-available/dav_svn.conf | 54 +++++++++++++++++++++++++++++++++++++ mods-available/dav_svn.load | 3 +++ mods-enabled/dav.load | 1 + mods-enabled/dav_svn.conf | 1 + mods-enabled/dav_svn.load | 1 + 5 files changed, 60 insertions(+) create mode 100644 mods-available/dav_svn.conf create mode 100644 mods-available/dav_svn.load create mode 120000 mods-enabled/dav.load create mode 120000 mods-enabled/dav_svn.conf create mode 120000 mods-enabled/dav_svn.load diff --git a/mods-available/dav_svn.conf b/mods-available/dav_svn.conf new file mode 100644 index 0000000..5050806 --- /dev/null +++ b/mods-available/dav_svn.conf @@ -0,0 +1,54 @@ +# 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. + +# ... +# 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. +# + + # Uncomment this to enable the repository + #DAV svn + + # Set this to the path to your repository + #SVNPath /var/lib/svn + # 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 /var/lib/svn + + # 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 and , 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 + + # 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'). + # + #Require valid-user + # + +# diff --git a/mods-available/dav_svn.load b/mods-available/dav_svn.load new file mode 100644 index 0000000..388a197 --- /dev/null +++ b/mods-available/dav_svn.load @@ -0,0 +1,3 @@ +# Depends: dav +LoadModule dav_svn_module /usr/lib/apache2/modules/mod_dav_svn.so +LoadModule authz_svn_module /usr/lib/apache2/modules/mod_authz_svn.so diff --git a/mods-enabled/dav.load b/mods-enabled/dav.load new file mode 120000 index 0000000..9dcfef6 --- /dev/null +++ b/mods-enabled/dav.load @@ -0,0 +1 @@ +../mods-available/dav.load \ No newline at end of file diff --git a/mods-enabled/dav_svn.conf b/mods-enabled/dav_svn.conf new file mode 120000 index 0000000..964c7bb --- /dev/null +++ b/mods-enabled/dav_svn.conf @@ -0,0 +1 @@ +../mods-available/dav_svn.conf \ No newline at end of file diff --git a/mods-enabled/dav_svn.load b/mods-enabled/dav_svn.load new file mode 120000 index 0000000..4094e41 --- /dev/null +++ b/mods-enabled/dav_svn.load @@ -0,0 +1 @@ +../mods-available/dav_svn.load \ No newline at end of file -- 2.34.1