You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Marc Stern <ma...@approach.be> on 2007/02/20 11:59:59 UTC
Change another module's setting
How is it possible to modify another module's setting, like, for
instance, the content of a 'SSLDirConfigRec' structure (from mod_ssl)
from another module ?
Thanks
Marc
Re: Change another module's setting
Posted by "William A. Rowe, Jr." <wr...@rowe-clan.net>.
Nick Kew wrote:
> On Tue, 20 Feb 2007 11:59:59 +0100
> Marc Stern <ma...@approach.be> wrote:
>
>> How is it possible to modify another module's setting, like, for
>> instance, the content of a 'SSLDirConfigRec' structure (from mod_ssl)
>> from another module ?
>
> 1. There's no general API for it.
> 2. But a module may export an API for such things.
> 3. And if it doesn't, you can still cheat by manipulating its
> internals directly. That of course is at your own risk:
> you'll need to declare your module as tied to an exact version.
And you will need the same key for get config as the module uses,
which generally use the foo_module structure as their key. You need
to inspect the other module's source to determine this.
Bill
Re: Change another module's setting
Posted by Nick Kew <ni...@webthing.com>.
On Tue, 20 Feb 2007 11:59:59 +0100
Marc Stern <ma...@approach.be> wrote:
> How is it possible to modify another module's setting, like, for
> instance, the content of a 'SSLDirConfigRec' structure (from mod_ssl)
> from another module ?
1. There's no general API for it.
2. But a module may export an API for such things.
3. And if it doesn't, you can still cheat by manipulating its
internals directly. That of course is at your own risk:
you'll need to declare your module as tied to an exact version.
--
Nick Kew
Application Development with Apache - the Apache Modules Book
http://www.apachetutor.org/