You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Jeff Trawick <tr...@gmail.com> on 2011/04/06 16:57:44 UTC

equivalent of -DFOO from within the configuration?

This would allow the usual <IfDefine ideoms to be used in an
environment that manages configuration files (presumably with
host-specific parts) but doesn't manage customized startup scripts or
otherwise create a mechanism to invoke httpd with different -D
arguments.

(The obvious "Define" is unfortunately taken by mod_define, which does
something else.)

Re: equivalent of -DFOO from within the configuration?

Posted by Jeff Trawick <tr...@gmail.com>.
On Wed, Apr 6, 2011 at 2:56 PM, Stefan Fritsch <sf...@sfritsch.de> wrote:
> On Wednesday 06 April 2011, Jeff Trawick wrote:
>> This would allow the usual <IfDefine ideoms to be used in an
>> environment that manages configuration files (presumably with
>> host-specific parts) but doesn't manage customized startup scripts
>> or otherwise create a mechanism to invoke httpd with different -D
>> arguments.
>>
>> (The obvious "Define" is unfortunately taken by mod_define, which
>> does something else.)
>
> "Define" in trunk does both. "Define FOO" is equivalent to -DFOO.
> "Define FOO bar" also allows using ${FOO} in the config.

silly me :)

Re: equivalent of -DFOO from within the configuration?

Posted by Stefan Fritsch <sf...@sfritsch.de>.
On Wednesday 06 April 2011, Jeff Trawick wrote:
> This would allow the usual <IfDefine ideoms to be used in an
> environment that manages configuration files (presumably with
> host-specific parts) but doesn't manage customized startup scripts
> or otherwise create a mechanism to invoke httpd with different -D
> arguments.
> 
> (The obvious "Define" is unfortunately taken by mod_define, which
> does something else.)

"Define" in trunk does both. "Define FOO" is equivalent to -DFOO. 
"Define FOO bar" also allows using ${FOO} in the config.