Lines 3344-3370
static int proxy_pre_config(apr_pool_t *pconf, apr
Link Here
|
3344 |
} |
3344 |
} |
3345 |
static void register_hooks(apr_pool_t *p) |
3345 |
static void register_hooks(apr_pool_t *p) |
3346 |
{ |
3346 |
{ |
3347 |
/* fixup before mod_rewrite, so that the proxied url will not |
3347 |
/* fixup after mod_rewrite so that a [P] URL from there gets fixed up */ |
3348 |
* escaped accidentally by our fixup. |
3348 |
static const char * const aszModRewrite[] = { "mod_rewrite.c", NULL }; |
3349 |
*/ |
|
|
3350 |
static const char * const aszSucc[] = { "mod_rewrite.c", NULL}; |
3351 |
/* Only the mpm_winnt has child init hook handler. |
3349 |
/* Only the mpm_winnt has child init hook handler. |
3352 |
* make sure that we are called after the mpm |
3350 |
* make sure that we are called after the mpm |
3353 |
* initializes. |
3351 |
* initializes. |
3354 |
*/ |
3352 |
*/ |
3355 |
static const char *const aszPred[] = { "mpm_winnt.c", "mod_proxy_balancer.c", |
3353 |
static const char *const aszPred[] = { "mpm_winnt.c", "mod_proxy_balancer.c", |
3356 |
"mod_proxy_hcheck.c", NULL}; |
3354 |
"mod_proxy_hcheck.c", NULL }; |
|
|
3355 |
|
3357 |
/* handler */ |
3356 |
/* handler */ |
3358 |
ap_hook_handler(proxy_handler, NULL, NULL, APR_HOOK_FIRST); |
3357 |
ap_hook_handler(proxy_handler, NULL, NULL, APR_HOOK_FIRST); |
3359 |
/* filename-to-URI translation */ |
3358 |
/* filename-to-URI translation */ |
3360 |
ap_hook_pre_translate_name(proxy_pre_translate_name, NULL, NULL, |
3359 |
ap_hook_pre_translate_name(proxy_pre_translate_name, NULL, NULL, |
3361 |
APR_HOOK_MIDDLE); |
3360 |
APR_HOOK_MIDDLE); |
3362 |
ap_hook_translate_name(proxy_translate_name, aszSucc, NULL, |
3361 |
ap_hook_translate_name(proxy_translate_name, aszModRewrite, NULL, |
3363 |
APR_HOOK_FIRST); |
3362 |
APR_HOOK_FIRST); |
3364 |
/* walk <Proxy > entries and suppress default TRACE behavior */ |
3363 |
/* walk <Proxy > entries and suppress default TRACE behavior */ |
3365 |
ap_hook_map_to_storage(proxy_map_location, NULL,NULL, APR_HOOK_FIRST); |
3364 |
ap_hook_map_to_storage(proxy_map_location, NULL,NULL, APR_HOOK_FIRST); |
3366 |
/* fixups */ |
3365 |
/* fixups */ |
3367 |
ap_hook_fixups(proxy_fixup, NULL, aszSucc, APR_HOOK_FIRST); |
3366 |
ap_hook_fixups(proxy_fixup, aszModRewrite, NULL, APR_HOOK_FIRST); |
3368 |
/* post read_request handling */ |
3367 |
/* post read_request handling */ |
3369 |
ap_hook_post_read_request(proxy_detect, NULL, NULL, APR_HOOK_FIRST); |
3368 |
ap_hook_post_read_request(proxy_detect, NULL, NULL, APR_HOOK_FIRST); |
3370 |
/* pre config handling */ |
3369 |
/* pre config handling */ |