Re: Development environment

2003-03-29 Thread Jeffrey Huang

- 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);
}







Hi, question about external module.

2003-03-25 Thread Jeffrey Huang



Hi,

I got a problem 
when I'm working on adding an externalmodule as a filter of Apache 2.0. 
Please help me to figure out the solution. I'mbuilding an external module to 
embed a C/C++ like scripting language, CH,executing for Apache 2.0 server. I 
studied from php module source programand got the simulated idea to build 
this module. I use pre_config,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 beused when requesting the target file type, 
for example, *.php. And thenexecute the script by activating module for that 
type, eg. mod_php. I builtmy own module and it works in Ret Hat Linux 7.x. 
However, when I port thismodule (mod_ch) to Windows 2000, Apache server 
seems can not reach the"post_read_request" hook. (I print out message at 
every hook function) I used thesame configuration setup as to Linux version, 
except the directory paths.I'm thinking is there any special setup needed 
for W2K to enable thepost_read_request hook? Does anybody have 
someexperience to build a module as a filter in Apache 2.0 server + Windows 
2000? Please helpme to figure out the problem. I appreciate your any 
help.Best Regards,Jeffrey 
Huang