[svnbook] r5739 committed - branches/1.8/zh/book/ ch06-server-configuration.xml

wuzhouhui at users.sourceforge.net wuzhouhui at users.sourceforge.net
Sun Aug 5 08:36:33 CDT 2018


Revision: 5739
          http://sourceforge.net/p/svnbook/source/5739
Author:   wuzhouhui
Date:     2018-08-05 13:36:32 +0000 (Sun, 05 Aug 2018)
Log Message:
-----------
1.8/zh: translation of chapter 6 in progress

Modified Paths:
--------------
    branches/1.8/zh/book/ch06-server-configuration.xml

Modified: branches/1.8/zh/book/ch06-server-configuration.xml
===================================================================
--- branches/1.8/zh/book/ch06-server-configuration.xml	2018-08-04 04:24:46 UTC (rev 5738)
+++ branches/1.8/zh/book/ch06-server-configuration.xml	2018-08-05 13:36:32 UTC (rev 5739)
@@ -4152,6 +4152,7 @@
           模块 <command>mod_dav_svn</command> 对 URL 进行解码, 根据定义在
           配置文件里的访问策略, 可能会禁止客户端的请求.</para>
 
+      <!--
         <para>If you've built Subversion from source code,
           <command>mod_authz_svn</command> is automatically built
           and installed alongside <command>mod_dav_svn</command>.
@@ -4160,6 +4161,13 @@
           right after <command>mod_dav_svn</command>'s
           <literal>LoadModule</literal> directive in
           <filename>httpd.conf</filename>:</para>
+      -->
+        <para>如果你是自己从源代码编译安装的 Subversion, 那么默认情况下, 模块
+          <command>mod_authz_svn</command> 将和 <command>mod_dav_svn</command>
+          一起被编译安装, 许多二进制包也会自动安装这两个模块. 为了确认模块已
+          被正确地安装, 在 <filename>httpd.conf</filename> 里将
+          <command>mod_authz_svn</command> 的加载放到
+          <command>mod_dav_svn</command> 之后:</para>
 
         <informalexample>
           <programlisting>
@@ -4169,6 +4177,7 @@
 </programlisting>
         </informalexample>
 
+      <!--
         <para>To activate this module, you need to configure your
           <literal><Location></literal> block to use the
           <literal>AuthzSVNAccessFile</literal> directive which specifies
@@ -4177,6 +4186,13 @@
           also use <literal>AuthzSVNReposRelativeAccessFile</literal>
           directive to specify a per repository access file.
           (In a moment, we'll discuss the format of that file.)</para>
+      -->
+        <para>为了激活 <command>mod_authz_svn</command>, 你需要在
+          <literal><Location></literal> 里, 用配置指令
+          <literal>AuthzSVNAccessFile</literal> 指定一个文件, 这个文件包含
+          了仓库内各个文件路径的权限策略. 从 Subversion 1.7 开始, 还可以用
+          配置指令 <literal>AuthzSVNReposRelativeAccessFile</literal> 指定
+          每个仓库的访问文件. (过一会儿, 我们就会讨论该文件的格式.)</para>
 
         <para>Apache is flexible, so you have the option to configure
           your block in one of three general patterns.  To begin,




More information about the svnbook-dev mailing list