Index: httpd-trunk/server/main.c =================================================================== --- httpd-trunk/server/main.c (révision 660123) +++ httpd-trunk/server/main.c (copie de travail) @@ -654,6 +654,9 @@ destroy_and_exit_process(process, 1); } + /* sort hooks again for dynamically loaded modules */ + apr_hook_sort_all(); + if (ap_run_pre_config(pconf, plog, ptemp) != OK) { ap_log_error(APLOG_MARK, APLOG_STARTUP |APLOG_ERR, 0, NULL, "Pre-configuration failed"); @@ -665,7 +668,6 @@ if (rv == OK) { ap_fixup_virtual_hosts(pconf, server_conf); ap_fini_vhost_config(pconf, server_conf); - apr_hook_sort_all(); if (ap_run_check_config(pconf, plog, ptemp, server_conf) != OK) { ap_log_error(APLOG_MARK, APLOG_STARTUP |APLOG_ERR, 0, @@ -732,6 +734,8 @@ destroy_and_exit_process(process, 1); } + apr_hook_sort_all(); + if (ap_run_pre_config(pconf, plog, ptemp) != OK) { ap_log_error(APLOG_MARK, APLOG_STARTUP |APLOG_ERR, 0, NULL, "Pre-configuration failed"); @@ -744,7 +748,6 @@ } ap_fixup_virtual_hosts(pconf, server_conf); ap_fini_vhost_config(pconf, server_conf); - apr_hook_sort_all(); if (ap_run_check_config(pconf, plog, ptemp, server_conf) != OK) { ap_log_error(APLOG_MARK, APLOG_STARTUP |APLOG_ERR, 0,