Only in httpd-2.4.3: CHANGES.orig diff -ur httpd-2.4.3.orig/include/ap_mmn.h httpd-2.4.3/include/ap_mmn.h --- httpd-2.4.3.orig/include/ap_mmn.h 2012-07-28 16:40:23.000000000 +0200 +++ httpd-2.4.3/include/ap_mmn.h 2012-11-11 13:20:28.000000000 +0100 @@ -403,7 +403,7 @@ #ifndef MODULE_MAGIC_NUMBER_MAJOR #define MODULE_MAGIC_NUMBER_MAJOR 20120211 #endif -#define MODULE_MAGIC_NUMBER_MINOR 11 /* 0...n */ +#define MODULE_MAGIC_NUMBER_MINOR 12 /* 0...n */ /** * Determine if the server's current MODULE_MAGIC_NUMBER is at least a Only in httpd-2.4.3/include: ap_mmn.h.orig Only in httpd-2.4.3/include: ap_mmn.h.rej diff -ur httpd-2.4.3.orig/include/http_request.h httpd-2.4.3/include/http_request.h --- httpd-2.4.3.orig/include/http_request.h 2012-01-09 14:18:26.000000000 +0100 +++ httpd-2.4.3/include/http_request.h 2012-11-11 13:19:38.000000000 +0100 @@ -528,6 +528,16 @@ */ AP_DECLARE_HOOK(void,insert_filter,(request_rec *r)) +/** + * This hook allows modules to affect the request immediately after the + * per-directory configuration for the request has been generated. + * @param r The current request + * @return OK (allow acces), DECLINED (let later modules decide), + * or HTTP_... (deny access) + * @ingroup hooks + */ +AP_DECLARE_HOOK(int,post_perdir_config,(request_rec *r)) + AP_DECLARE(int) ap_location_walk(request_rec *r); AP_DECLARE(int) ap_directory_walk(request_rec *r); AP_DECLARE(int) ap_file_walk(request_rec *r); diff -ur httpd-2.4.3.orig/server/request.c httpd-2.4.3/server/request.c --- httpd-2.4.3.orig/server/request.c 2012-08-11 14:42:25.000000000 +0200 +++ httpd-2.4.3/server/request.c 2012-11-11 13:19:38.000000000 +0100 @@ -69,6 +69,7 @@ APR_HOOK_LINK(auth_checker) APR_HOOK_LINK(insert_filter) APR_HOOK_LINK(create_request) + APR_HOOK_LINK(post_perdir_config) ) AP_IMPLEMENT_HOOK_RUN_FIRST(int,translate_name, @@ -90,6 +91,8 @@ AP_IMPLEMENT_HOOK_VOID(insert_filter, (request_rec *r), (r)) AP_IMPLEMENT_HOOK_RUN_ALL(int, create_request, (request_rec *r), (r), OK, DECLINED) +AP_IMPLEMENT_HOOK_RUN_ALL(int, post_perdir_config, + (request_rec *r), (r), OK, DECLINED) static int auth_internal_per_conf = 0; static int auth_internal_per_conf_hooks = 0; @@ -191,6 +194,10 @@ r->log = d->log; } + if ((access_status = ap_run_post_perdir_config(r))) { + return access_status; + } + /* Only on the main request! */ if (r->main == NULL) { if ((access_status = ap_run_header_parser(r))) {