Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 3277 invoked from network); 21 Dec 2003 21:57:45 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 21 Dec 2003 21:57:45 -0000 Received: (qmail 92478 invoked by uid 500); 21 Dec 2003 21:46:13 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 92427 invoked by uid 500); 21 Dec 2003 21:46:12 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 92399 invoked from network); 21 Dec 2003 21:46:12 -0000 Received: from unknown (HELO RCSV650) (208.176.192.146) by daedalus.apache.org with SMTP; 21 Dec 2003 21:46:12 -0000 Received: from RCSV650.apache.org ([208.176.192.146]) by RCSV650 with Microsoft SMTPSVC(6.0.2600.1106); Sun, 21 Dec 2003 15:47:48 -0600 Message-Id: <5.2.0.9.2.20031221153609.02017210@pop3.rowe-clan.net> X-Sender: admin%rowe-clan.net@pop3.rowe-clan.net (Unverified) X-Mailer: QUALCOMM Windows Eudora Version 5.2.0.9 Date: Sun, 21 Dec 2003 15:40:19 -0600 To: dev@httpd.apache.org From: "William A. Rowe, Jr." Subject: Re: why open_logs/post_config hooks are run only for the main server? Cc: dev@httpd.apache.org In-Reply-To: <3FE5698C.10804@stason.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-OriginalArrivalTime: 21 Dec 2003 21:47:48.0584 (UTC) FILETIME=[13527680:01C3C80C] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N At 03:36 AM 12/21/2003, Stas Bekman wrote: >We have users who want to run different post_config hooks for different vhosts. Any chance httpd-2.0 can be changed to run the open_logs/post_config (or at least post_config) hooks for each vhost as well? Any reason for not doing that in first place? The issue would be that all modules presume these hooks are called once and only once, therefore they initialize global structures presuming this entry point won't be invoked again. It is almost worth a totally different hook entry point (before post_config) such as vhost_init which *would* be called per-vhost (starting from the main server config and working through the list.) I have several modules with the for (s=_server; s; s = s->next) paradigm that would be easier to read using such a hook. Although I'm generally against adding more cpu-intensive hook phases, this is an init-only hook so it's much easier to implement. We might also want to revisit the child_init hook, which is once/process. Some have asked for a per-thread init hook as well. Bill