[svnbook] r3922 committed - * src/en/book/ch06-server-configuration.xml...

svnbook at googlecode.com svnbook at googlecode.com
Wed Jul 27 10:18:09 CDT 2011


Revision: 3922
Author:   cmpilato at gmail.com
Date:     Wed Jul 27 08:17:04 2011
Log:      * src/en/book/ch06-server-configuration.xml
   Continuing a trend of consistification started by Quinn Taylor's
   recent patches to this chapter, explicitly label and comment on the
   authentication and authorization blocks of the httpd.conf examples.

http://code.google.com/p/svnbook/source/detail?r=3922

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

=======================================
--- /trunk/src/en/book/ch06-server-configuration.xml	Wed Jul 27 07:55:34  
2011
+++ /trunk/src/en/book/ch06-server-configuration.xml	Wed Jul 27 08:17:04  
2011
@@ -1648,7 +1648,7 @@
  <Location /svn>
    DAV svn

-  # any "/svn/foo" URL will map to a repository /var/svn/foo
+  # Automatically map any "/svn/foo" URL to repository /var/svn/foo
    SVNParentPath /var/svn
  </Location>
  </programlisting>
@@ -1840,6 +1840,7 @@
    DAV svn
    SVNParentPath /var/svn

+  # Authentication: Basic
    AuthName "Subversion repository"
    AuthType Basic
    AuthUserFile /etc/svn-auth.htpasswd
@@ -1884,10 +1885,12 @@
    DAV svn
    SVNParentPath /var/svn

+  # Authentication: Basic
    AuthName "Subversion repository"
    AuthType Basic
    AuthUserFile /etc/svn-auth.htpasswd

+  # Authorization: Authenticated users only
    Require valid-user
  </Location>
  </programlisting>
@@ -1923,10 +1926,12 @@
    DAV svn
    SVNParentPath /var/svn

+  # Authentication: Digest
    AuthName "Subversion repository"
    AuthType Digest
    AuthUserFile /etc/svn-auth.htdigest

+  # Authorization: Authenticated users only
    Require valid-user
  </Location>
  </programlisting>
@@ -1994,11 +1999,12 @@
    DAV svn
    SVNParentPath /var/svn

+  # Authentication: Digest
    AuthName "Subversion repository"
    AuthType Digest
    AuthUserFile /etc/svn-auth.htdigest

-  # Only authenticated users may access the repository
+  # Authorization: Authenticated users only
    Require valid-user
  </Location>
  </programlisting>
@@ -2035,11 +2041,13 @@
    DAV svn
    SVNParentPath /var/svn

+  # Authentication: Digest
    AuthName "Subversion repository"
    AuthType Digest
    AuthUserFile /etc/svn-auth.htdigest

-  # For any operations other than these, require an authenticated user.
+  # Authorization: Authenticated users only for non-read-only
+  #                (write) operations; allow anonymous reads
    <LimitExcept GET PROPFIND OPTIONS REPORT>
      Require valid-user
    </LimitExcept>
@@ -2111,9 +2119,10 @@
    DAV svn
    SVNParentPath /var/svn

-  AuthzSVNAccessFile /path/to/access/file
-
-  # Any user may access the repository anonymously
+  # Authentication: None
+
+  # Authorization: Path-based access control
+  AuthzSVNAccessFile /path/to/access/file
  </Location>
  </programlisting>
          </example>
@@ -2132,13 +2141,13 @@
    DAV svn
    SVNParentPath /var/svn

-  AuthzSVNAccessFile /path/to/access/file
-
+  # Authentication: Digest
    AuthName "Subversion repository"
    AuthType Digest
    AuthUserFile /etc/svn-auth.htdigest

-  # Only authenticated users may access the repository
+  # Authorization: Path-based access control; authenticated users only
+  AuthzSVNAccessFile /path/to/access/file
    Require valid-user
  </Location>
  </programlisting>
@@ -2165,13 +2174,14 @@
    DAV svn
    SVNParentPath /var/svn

-  AuthzSVNAccessFile /path/to/access/file
-
+  # Authentication: Digest
    AuthName "Subversion repository"
    AuthType Digest
    AuthUserFile /etc/svn-auth.htdigest

-  # Try anonymous access first, authenticate only if necessary
+  # Authorization: Path-based access control; try anonymous access
+  #                first, but authenticate if necessary
+  AuthzSVNAccessFile /path/to/access/file
    Satisfy Any
    Require valid-user
  </Location>




More information about the svnbook-dev mailing list