httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject make the server not to start in case the Initialization is a failure
Date Fri, 10 Sep 2004 11:53:12 GMT

Hi All,

I am trying to write a sample Plugin on APACHE 2.0 which does some

I am attaching the code portion for the same.

static void mod_register_hooks(apr_pool_t *p)
    ap_hook_child_init    (mod_init_Child, NULL,NULL, APR_HOOK_FIRST);
    ap_hook_check_user_id (mod_auth,NULL,NULL, APR_HOOK_FIRST);


module AP_MODULE_DECLARE_DATA sm_mod_auth = {
    NULL,   /* create per-dir    config structures */
    NULL,    /* merge  per-dir    config structures */
    NULL,   /* create per-server config structures */
    NULL,    /* merge  per-server config structures */
    NULL,            /* table of configuration directives   */
    mod_register_hooks          /* register hooks */

static int mod_init_Child(server_rec* pServerRec, apr_pool_t* pPool)
	  int nRet = FALSE;
        printf("Inside Child Auth Module\n");
	  nRet = InitConfigFile(pPool);
	  if (nRet == FALSE)
	      return FALSE;
		return TRUE;

How do make the server not to start in case the Initialization is a
The same used to work on apache 1.3x in case I returned exit(2), but its
not working with apache 2.0.

Any help ???

Thanks in advance

Confidentiality Notice

The information contained in this electronic message and any attachments to this message are
for the exclusive use of the addressee(s) and may contain confidential or privileged information.
you are not the intended recipient, please notify the sender at Wipro or
and destroy all copies of this message and any attachments.

View raw message