]> granicus.if.org Git - apache/commitdiff
Merge r1210130:
authorStefan Fritsch <sf@apache.org>
Sun, 4 Dec 2011 16:10:06 +0000 (16:10 +0000)
committerStefan Fritsch <sf@apache.org>
Sun, 4 Dec 2011 16:10:06 +0000 (16:10 +0000)
More pointers to mod_socache*

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1210133 13f79535-47bb-0310-9956-ffa450edef68

modules/aaa/mod_authn_socache.c
modules/ssl/ssl_engine_config.c

index 317ce9f7bd3c3cd9d8f840077b30d1335152bd36..996fe072fa0065436b760fe948f0cb313ea390c3 100644 (file)
@@ -95,7 +95,8 @@ static int authn_cache_post_config(apr_pool_t *pconf, apr_pool_t *plog,
     if (socache_provider == NULL) {
         ap_log_perror(APLOG_MARK, APLOG_CRIT, 0, plog,
                       "Please select a socache provider with AuthnCacheSOCache "
-                      "(no default found on this platform)");
+                      "(no default found on this platform). Maybe you need to "
+                      "load mod_socache_shmcb or another socache module first");
         return 500; /* An HTTP status would be a misnomer! */
     }
 
@@ -143,10 +144,15 @@ static const char *authn_cache_socache(cmd_parms *cmd, void *CFG,
                                        const char *arg)
 {
     const char *errmsg = ap_check_cmd_context(cmd, GLOBAL_ONLY);
+    if (errmsg)
+        return errmsg;
     socache_provider = ap_lookup_provider(AP_SOCACHE_PROVIDER_GROUP, arg,
                                           AP_SOCACHE_PROVIDER_VERSION);
     if (socache_provider == NULL) {
-        errmsg = "Unknown socache provider";
+        errmsg = apr_psprintf(cmd->pool,
+                              "Unknown socache provider '%s'. Maybe you need "
+                              "to load the appropriate socache module "
+                              "(mod_socache_%s?)", arg, arg);
     }
     return errmsg;
 }
index 5ad9cc8163d1bfa4dba21320972efb55dea30f01..9ba61f77e2519787fe0b51b485e52cdd65a69f89 100644 (file)
@@ -1689,7 +1689,9 @@ const char *ssl_cmd_SSLStaplingCache(cmd_parms *cmd,
         all_names = apr_array_pstrcat(cmd->pool, name_list, ',');
 
         err = apr_psprintf(cmd->pool, "'%s' stapling cache not supported "
-                           "(known names: %s)", name, all_names);
+                           "(known names: %s) Maybe you need to load the "
+                           "appropriate socache module (mod_socache_%s?)",
+                           name, all_names, name);
     }
 
     if (err) {