----- Original Message -----
From: "Justin Erenkrantz" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 28, 2003 8:34 AM
Subject: Re: Development environment


> --On Wednesday, March 26, 2003 3:27 PM -0700 Chia-Hsin Huang
> <[EMAIL PROTECTED]> wrote:
>
> >
> > Hi,
> >
> > You must use autoconf and automake to build the project. You can refer
to
> > the address.
> > http://www.gnu.org/software/autoconf/
> > http://www.gnu.org/software/automake/
>
> Um, none of the dependencies for httpd use automake, but rather libtool.
> That's probably KDevelop's problem - it may not support libtool.  (Not
sure as
> I've never used it.)
>
> http://www.gnu.org/software/libtool/
>
> > post_config and post_read_request hooks. Ideally when Apache server =
> > startup,
> > the pre_config hook is executed and the post_read_request hook should be
> > used when requesting the target file type, for example, *.php. And then
> > execute the script by activating module for that type, eg. mod_php. I =
>
> You are registering all of the hooks at module initialization time,
correct?
> Take a look at the register_hooks function that most modules implement.
> mod_proxy.c is a decent enough example of where to call
> ap_hook_post_read_request within register_hooks.  -- justin

Hi, I checked with the mod_php and mod_proxy, but I still can not find the
answer.
The registration function I used is below. I'm wondering why my module can
work in Linux. But, in W2K only pre_config and post_config are executed..


static void ch_register_hook(apr_pool_t *p)
{
 ap_hook_pre_config(ch_pre_config, NULL, NULL, APR_HOOK_MIDDLE);
 ap_hook_post_config(ch_apache_server_startup, NULL, NULL, APR_HOOK_MIDDLE);
 ap_hook_post_read_request(ch_post_read_request, NULL, NULL,
APR_HOOK_MIDDLE);
 ap_register_output_filter("CH", ch_output_filter, NULL, AP_FTYPE_RESOURCE);
 ap_register_input_filter("CH", ch_input_filter, NULL, AP_FTYPE_RESOURCE);
}





Reply via email to