Subject: | Modul silently fails if server configuration does not contain "PerlModule Apache2::ModSSL" |
After debugging the XS-code here's the problem:
* the module uses functions from mod_ssl that have to be resolved
via APR_RETRIEVE_OPTIONAL_FN, unless these are resolved the module
returns that there is no ssl
* the APR_RETRIEVE_OPTIONAL_FN calls are made within retrieve_functions
* retrieve_functions is an apache2-hook registered here:
ap_hook_post_config(retrieve_functions, aszPre, NULL, APR_HOOK_FIRST);
* when the module is initialized not within server boot but at the first
request, apache will never call the hook
fix:Make some kind of lazy initialization or update documentation.
Thanks for the module :)