From: Christophe Jaillet
Some users of more heavyweight authentication such as SQL database
lookups (
mod_authn_socache provides a solution to this problem by +
The basic rules to cache for a provider are:
-Module developers should note that their modules must be enabled
- for cacheing with mod_authn_socache. A single optional API function
+ for caching with
This directive is not normally necessary: it is implied if
- authentication cacheing is enabled anywhere in httpd.conf.
+ authentication caching is enabled anywhere in httpd.conf.
However, if it is not enabled anywhere in httpd.conf
it will by default not be initialised, and is therefore not
available in a .htaccess context. This directive
@@ -140,7 +141,7 @@ Apache HTTP Server 2.4.7 and later
This directive specifies an authentication provider or providers
to cache for. Credentials found by a provider not listed in an
- AuthnCacheProvideFor directive will not be cached.
For example, to cache credentials found by Cacheing authentication data can be a security issue, though short-term
- cacheing is unlikely to be a problem. Typically a good solution is to
+ Caching authentication data can be a security issue, though short-term
+ caching is unlikely to be a problem. Typically a good solution is to
cache credentials for as long as it takes to relieve the load on a
backend, but no longer, though if changes to your users and passwords
are infrequent then a longer timeout may suit you. The default 300
@@ -178,8 +179,8 @@ AuthnCacheProvideFor dbd myprovider
Two special values for this are directory, which uses
- the directory context of the request as a string, and server
+ Two special values for this are The default is directory, which is also the most
+ The default is directory
, which uses
+ the directory context of the request as a string, and server
which uses the virtual host name.directory
, which is also the most
conservative setting. This is likely to be less than optimal, as it
(for example) causes $app-base, $app-base/images,
$app-base/scripts and $app-base/media each to