httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William A. Rowe, Jr." <wr...@apache.org>
Subject Re: why open_logs/post_config hooks are run only for the main server?
Date Mon, 22 Dec 2003 21:49:55 GMT
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) {


Mime
View raw message