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! */
}
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;
}
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) {