Only question below is should this hook always run before or after the post config hook? My gut says after post config.
At 11:19 AM 12/22/2003, Geoff wrote: >I had some spare time and thought I could help with the grunt work - my try >at a patch attached. >+ for (s = server_conf; s; s = s->next) { >+ if ( ap_run_vhost_init(pconf, plog, ptemp, s) != OK) { >+ ap_log_error(APLOG_MARK, APLOG_STARTUP |APLOG_ERR, >+ 0, NULL, "Unable to initialize virtual hosts\n"); >+ destroy_and_exit_process(process, 1); >+ } >+ } >+ > if ( ap_run_post_config(pconf, plog, ptemp, server_conf) != OK) { > ap_log_error(APLOG_MARK, APLOG_STARTUP |APLOG_ERR, 0, > NULL, "Configuration Failed\n"); >@@ -692,6 +707,14 @@ > ap_log_error(APLOG_MARK, APLOG_STARTUP |APLOG_ERR, > 0, NULL, "Unable to open logs\n"); > destroy_and_exit_process(process, 1); >+ } >+ >+ for (s = server_conf; s; s = s->next) { >+ if ( ap_run_vhost_init(pconf, plog, ptemp, s) != OK) { >+ ap_log_error(APLOG_MARK, APLOG_STARTUP |APLOG_ERR, >+ 0, NULL, "Unable to initialize virtual hosts\n"); >+ destroy_and_exit_process(process, 1); >+ } > } > > if (ap_run_post_config(pconf, plog, ptemp, server_conf) != OK) {