From b1270b8a2cc691c1cb20b63bb81dd951306c8189 Mon Sep 17 00:00:00 2001 From: Christophe Jaillet Date: Sun, 15 Feb 2015 08:10:47 +0000 Subject: [PATCH] Backport r1447192 in order to fix an error in an example as spotted by Ben Johnson in online doc git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1659892 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/mod/mod_authn_socache.html.en | 8 +++++--- docs/manual/mod/mod_authn_socache.xml | 6 ++++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/docs/manual/mod/mod_authn_socache.html.en b/docs/manual/mod/mod_authn_socache.html.en index 7c32b6eb79..15071dc148 100644 --- a/docs/manual/mod/mod_authn_socache.html.en +++ b/docs/manual/mod/mod_authn_socache.html.en @@ -85,15 +85,17 @@ the load on backends

A simple usage example to accelerate mod_authn_dbd using dbm as a cache engine:

-
<Directory /usr/www/myhost/private>
+    
#AuthnCacheSOCache is optional.  If specified, it is server-wide
+AuthnCacheSOCache dbm
+<Directory /usr/www/myhost/private>
     AuthType Basic
     AuthName "Cached Authentication Example"
     AuthBasicProvider socache dbd
     AuthDBDUserPWQuery "SELECT password FROM authn WHERE user = %s"
     AuthnCacheProvideFor dbd
-    AuthnCacheContext dbd-authn-example
-    AuthnCacheSOCache dbm
     Require valid-user
+    #Optional
+    AuthnCacheContext dbd-authn-example
 </Directory>
top
diff --git a/docs/manual/mod/mod_authn_socache.xml b/docs/manual/mod/mod_authn_socache.xml index 932c6da7f0..b5d3254f72 100644 --- a/docs/manual/mod/mod_authn_socache.xml +++ b/docs/manual/mod/mod_authn_socache.xml @@ -70,15 +70,17 @@ the load on backends

A simple usage example to accelerate mod_authn_dbd using dbm as a cache engine:

+#AuthnCacheSOCache is optional. If specified, it is server-wide +AuthnCacheSOCache dbm <Directory /usr/www/myhost/private> AuthType Basic AuthName "Cached Authentication Example" AuthBasicProvider socache dbd AuthDBDUserPWQuery "SELECT password FROM authn WHERE user = %s" AuthnCacheProvideFor dbd - AuthnCacheContext dbd-authn-example - AuthnCacheSOCache dbm Require valid-user + #Optional + AuthnCacheContext dbd-authn-example </Directory> -- 2.40.0