[svnbook] r5117 committed - trunk/en/book/ch06-server-configuration.xml

lyalyakin at users.sourceforge.net lyalyakin at users.sourceforge.net
Wed Mar 2 09:22:08 CST 2016


Revision: 5117
          http://sourceforge.net/p/svnbook/source/5117
Author:   lyalyakin
Date:     2016-03-02 15:22:08 +0000 (Wed, 02 Mar 2016)
Log Message:
-----------
Issue [236]. New section svn.serverconfig.httpd.authz.inrepo-authz describing in repo
authz feature with a few basic examples.

* en/book/ch06-server-configuration.xml
  Add svn.serverconfig.httpd.authz.inrepo-authz section.

Modified Paths:
--------------
    trunk/en/book/ch06-server-configuration.xml

Modified: trunk/en/book/ch06-server-configuration.xml
===================================================================
--- trunk/en/book/ch06-server-configuration.xml	2016-03-02 13:41:52 UTC (rev 5116)
+++ trunk/en/book/ch06-server-configuration.xml	2016-03-02 15:22:08 UTC (rev 5117)
@@ -2838,6 +2838,56 @@
 
       </sect3>
 
+      <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
+      <sect3 id="svn.serverconfig.httpd.authz.inrepo-authz">
+        <title>Versioned In Repository Authorization Files</title>
+
+        <para>Beginning with Subversion 1.8, authz files can be stored
+          inside a Subversion repository.  It is possible to store the
+          authorization file in the same repository to which the
+          access rules are being applied or another repository.  This
+          approach enables versioning features of Subversion for
+          the path-based authorization.</para>
+
+        <para>Both <literal>AuthzSVNAccessFile</literal> and
+          <literal>AuthzSVNReposRelativeAccessFile</literal> configuration
+          directives allow to specify in repo authorization file absolute
+          or relative URL via local <literal>file://</literal> access method,
+          but not <literal>svn://</literal> and <literal>http://</literal>
+          or <literal>https://</literal> methods.</para>
+
+        <para>For example, it is possible to specify absolute URL to in
+          repository authz file as shown in
+          <xref linkend="svn.serverconfig.httpd.authz.inrepo-authz.ex-1"/>.</para>
+
+        <example id="svn.serverconfig.httpd.authz.inrepo-authz.ex-1">
+          <title>Using single versioned in repo authz file</title>
+          <programlisting>
+<Location /repos>
+  DAV svn
+  SVNParentPath /var/svn
+  AuthzSVNAccessFile file:///var/svn/authzrepo/authz
+</Location>
+</programlisting>
+        </example>
+
+        <para>You can also specify relative URL to in repository authz
+          file as shown in
+          <xref linkend="svn.serverconfig.httpd.authz.inrepo-authz.ex-2"/>.</para>
+
+        <example id="svn.serverconfig.httpd.authz.inrepo-authz.ex-2">
+          <title>Using per repository in repo authz files</title>
+          <programlisting>
+<Location /repos>
+  DAV svn
+  SVNParentPath /var/svn
+  AuthzSVNReposRelativeAccessFile ^/authz
+</Location>
+</programlisting>
+        </example>
+
+      </sect3>
+
     </sect2>
 
     <!-- =============================================================== -->




More information about the svnbook-dev mailing list