You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Sander Temme <sc...@covalent.net> on 2003/12/21 21:18:09 UTC

Re: why open_logs/post_config hooks are run only for the main server?

> 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?

You can access your virtual hosts in the post_config hook. Just iterate down
your server_rec->next list.

S.

-- 
Covalent Technologies                 sctemme@covalent.net
Engineering group                    Voice: (415) 856 4214
303 Second Street #375 South           Fax: (415) 856 4210
San Francisco CA 94107

PGP FP: 7A8D B189 E871 80CB 9521  9320 C11E 7B47 964F 31D9

=======================================================
This email message is for the sole use of the intended
recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or
distribution is prohibited.  If you are not the intended
recipient, please contact the sender by reply email and
destroy all copies of the original message
=======================================================


Re: why open_logs/post_config hooks are run only for the main server?

Posted by Stas Bekman <st...@stason.org>.
Sander Temme 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?
> 
> 
> You can access your virtual hosts in the post_config hook. Just iterate down
> your server_rec->next list.

Sure, we can do that. I just thought that it's something that everybody may want.

Thanks Sander.


__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com