You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modules-dev@httpd.apache.org by Fabrice Desre <fa...@gmail.com> on 2009/01/29 15:27:12 UTC

post_config hook issue

 Hello,

I'm trying to use the post config hook in my module to initialize
shared data, with no success.

static void mymod_register_hooks(apr_pool_t *p) {
    static const char * const aszSucc[]={ "mod_userdir.c",
                                                          "mod_vhost_alias.c",
		                 			  "mod_alias.c",
							  NULL };
   ap_hook_handler(mymod_handler, NULL, NULL, APR_HOOK_MIDDLE);
   ap_hook_post_config(mymod_global_init, NULL, NULL, APR_HOOK_MIDDLE);
}

The request handler is called as expected, but the mymod_global_init
is never called. What did I miss ?

 Thanks for your help,

 Fabrice