On Tue, Mar 6, 2012 at 13:27, Daniil A Megrabjan <danil.megrab...@gmail.com> wrote: > Anyway, as far as I understood I'm not allowed to change the default > behavior of mod_ssl. In this case there is the other question - how to > register my hook to be really before mod_ssl? and even if request has > been received on 443 TCP port process the request as usual HTTP. > > Something like: > * > * > *static* *const* *char* * *const* aszPre[] = { "mod_ssl.c", NULL }; > > ap_hook_handler(ixcell_init_handler, aszPre, NULL, APR_HOOK_REALLY_FIRST); > > doesn't help.
Try ap_hook_pre_connection().