anubhav
29th April 2007, 14:53
hey if anyone can guide me.. id be really grateful
im havin problems in understanding how to create a module in apache 2.0
in 1.3 the structure went like
module MODULE_VAR_EXPORT [module_name]_module =
{
STANDARD_MODULE_STUFF,
/* initializer */
/* dir config creater */
/* dir merger --- default is to override */
/* server config */
/* merge server config */
/* command handlers */
/* handlers */
/* filename translation */
/* check_user_id */
/* check auth */
/* check access */
/* type_checker */
/* fixups */
/* logger */
/* header parser */
/* child_init */
/* child_exit */
/* post read-request */
};
but now in 2.0 its become
module MODULE_VAR_EXPORT [module_name]_module =
{
STANDARD20_MODULE_STUFF,
/* create per-directory config structures */
/* merge per-directory config structures */
/* create per-server config structures */
/* merge per-server config structures */
/* command handlers */
/* handlers */
/* register hooks */
};
the source code for 1.3 was
module MODULE_VAR_EXPORT client_module = {
STANDARD_MODULE_STUFF,
NULL, /* module initializer */
NULL, /* per-directory config creator */
NULL, /* dir config merger */
NULL, /* server config creator */
NULL, /* server config merger */
NULL, /* command table */
NULL, /* [9] content handlers */
req_handler, /* [2] URI-to-filename translation */
NULL, /* [5] check/validate user_id */
NULL, /* [6] check user_id is valid *here* */
NULL, /* [4] check access by host address */
NULL, /* [7] MIME type checker/setter */
NULL, /* [8] fixups */
NULL, /* [10] logger */
NULL, /* [3] header parser */
NULL, /* process initialization */
NULL, /* process exit/cleanup */
NULL /* [1] post read_request handling */
};
how do i convert this to 2.0???
iv read the 2.0 documentation , which says to use hooks.. and in particular a hook defined as ap_hook_translate_name but i have no cluw how to do that.
pl anyone wit any advice?? i got a deadline comin in 3 days and this is holding me down.!! :'(
im havin problems in understanding how to create a module in apache 2.0
in 1.3 the structure went like
module MODULE_VAR_EXPORT [module_name]_module =
{
STANDARD_MODULE_STUFF,
/* initializer */
/* dir config creater */
/* dir merger --- default is to override */
/* server config */
/* merge server config */
/* command handlers */
/* handlers */
/* filename translation */
/* check_user_id */
/* check auth */
/* check access */
/* type_checker */
/* fixups */
/* logger */
/* header parser */
/* child_init */
/* child_exit */
/* post read-request */
};
but now in 2.0 its become
module MODULE_VAR_EXPORT [module_name]_module =
{
STANDARD20_MODULE_STUFF,
/* create per-directory config structures */
/* merge per-directory config structures */
/* create per-server config structures */
/* merge per-server config structures */
/* command handlers */
/* handlers */
/* register hooks */
};
the source code for 1.3 was
module MODULE_VAR_EXPORT client_module = {
STANDARD_MODULE_STUFF,
NULL, /* module initializer */
NULL, /* per-directory config creator */
NULL, /* dir config merger */
NULL, /* server config creator */
NULL, /* server config merger */
NULL, /* command table */
NULL, /* [9] content handlers */
req_handler, /* [2] URI-to-filename translation */
NULL, /* [5] check/validate user_id */
NULL, /* [6] check user_id is valid *here* */
NULL, /* [4] check access by host address */
NULL, /* [7] MIME type checker/setter */
NULL, /* [8] fixups */
NULL, /* [10] logger */
NULL, /* [3] header parser */
NULL, /* process initialization */
NULL, /* process exit/cleanup */
NULL /* [1] post read_request handling */
};
how do i convert this to 2.0???
iv read the 2.0 documentation , which says to use hooks.. and in particular a hook defined as ap_hook_translate_name but i have no cluw how to do that.
pl anyone wit any advice?? i got a deadline comin in 3 days and this is holding me down.!! :'(