| 3350 | return OK; |
| 3351 | } |
| 3352 | static void register_hooks(apr_pool_t *p) |
| 3353 | { |
| 3354 | /* Only the mpm_winnt has child init hook handler. |
| 3355 | * make sure that we are called after the mpm |
| 3356 | * initializes. |
| 3357 | */ |
| 3358 | static const char *const aszPred[] = { "mpm_winnt.c", "mod_proxy_balancer.c", |
| 3359 | "mod_proxy_hcheck.c", NULL}; |
| 3360 | static const char * const aszModRewrite[] = { "mod_rewrite.c", NULL }; |
| 3361 | |
| 3362 | /* handler */ |
| 3363 | ap_hook_handler(proxy_handler, NULL, NULL, APR_HOOK_FIRST); |
| 3364 | /* filename-to-URI translation */ |
| 3365 | ap_hook_pre_translate_name(proxy_pre_translate_name, NULL, NULL, |
| 3366 | APR_HOOK_MIDDLE); |
| 3367 | /* mod_rewrite has a say on the uri before proxy translation */ |
| 3368 | ap_hook_translate_name(proxy_translate_name, aszModRewrite, NULL, |
| 3369 | APR_HOOK_FIRST); |
| 3370 | /* walk <Proxy > entries and suppress default TRACE behavior */ |
| 3371 | ap_hook_map_to_storage(proxy_map_location, NULL,NULL, APR_HOOK_FIRST); |
| 3372 | /* fixup after mod_rewrite so that a [P] URL from there gets fixed up */ |
| 3373 | ap_hook_fixups(proxy_fixup, aszModRewrite, NULL, APR_HOOK_FIRST); |
| 3374 | /* post read_request handling */ |
| 3375 | ap_hook_post_read_request(proxy_detect, NULL, NULL, APR_HOOK_FIRST); |
| 3376 | /* pre config handling */ |
| 3377 | ap_hook_pre_config(proxy_pre_config, NULL, NULL, APR_HOOK_MIDDLE); |
| 3378 | /* post config handling */ |
| 3379 | ap_hook_post_config(proxy_post_config, NULL, NULL, APR_HOOK_MIDDLE); |
| 3380 | /* child init handling */ |
| 3381 | ap_hook_child_init(child_init, aszPred, NULL, APR_HOOK_MIDDLE); |
| 3382 | |
| 3383 | /* register optional functions within proxy_util.c */ |
| 3384 | proxy_util_register_hooks(p); |
| 3385 | } |
| 3386 | |
| 3387 | AP_DECLARE_MODULE(proxy) = |
| 3388 | { |
nothing calls this directly
no test coverage detected