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.!! :'(
or if anyone can guide me on how to uninstall apache 2.0 and install apache 1.3 on FC4 so that my code starts working .. in quite a fix here.. ! please if theres anyone out there who can lend a hand..
You can search for the Apache 1.3 package like this: Code: yum search apache (Please note that this will also display Apache2 packages, so be careful which ones you pick.) You can then install your desired packages like this: Code: yum install package1 package2 ...