You are viewing a plain text version of this content. The canonical link for it is here.
Posted to docs@httpd.apache.org by Eric Covener <co...@gmail.com> on 2017/06/21 15:39:06 UTC

Re: [users@httpd] if directive not being respected in Apache 2.4.6

On Fri, Jun 9, 2017 at 12:36 PM, Day, Chuck <ch...@medtronic.com> wrote:
>        Define locale1 fr-FR

It is not currently documented or rejected, but "Define" can't be
wrapped in any of the normal configuration sections (only ifdefine,
ifmodule, etc. can wrap it)
It is processed at startup only, not during request procesing.

-- 
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org


Re: [users@httpd] if directive not being respected in Apache 2.4.6

Posted by Jacob Champion <ch...@gmail.com>.
On 06/21/2017 09:02 AM, William A Rowe Jr wrote:
> ++1
> 
> EXEC_ON_READ is meaningful to we devs, but not for a general audience.
> 
> 'Immediate Global' or something similar?  What other 2 or 3 word caption 
> works to describe this well for end users researching Define, or 
> LoadModule, etc?

"Preprocessor Directive"? "Load-Time Directive"? I'll give it some thought.

--Jacob

---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org


Re: [users@httpd] if directive not being respected in Apache 2.4.6

Posted by Jacob Champion <ch...@gmail.com>.
On 06/21/2017 09:02 AM, William A Rowe Jr wrote:
> ++1
> 
> EXEC_ON_READ is meaningful to we devs, but not for a general audience.
> 
> 'Immediate Global' or something similar?  What other 2 or 3 word caption 
> works to describe this well for end users researching Define, or 
> LoadModule, etc?

"Preprocessor Directive"? "Load-Time Directive"? I'll give it some thought.

--Jacob

Re: [users@httpd] if directive not being respected in Apache 2.4.6

Posted by William A Rowe Jr <wr...@rowe-clan.net>.
On Jun 21, 2017 10:49, "Jacob Champion" <ch...@gmail.com> wrote:

On 06/21/2017 08:45 AM, William A Rowe Jr wrote:

> Frankly I'd think scope should be defined as Global only,
> even though it won't error out in these other cases. For
> trunk, it would be good to lock this down and eliminate
> the legacy 'support' of Define in sections.
>

+1.

Very long-term, I think it would be good for all EXEC_ON_READ directives to
be distinguished by the config syntax itself. Similar to #include and
#define in C. I've been tinkering around with that a little in my spare
cycles.


++1

EXEC_ON_READ is meaningful to we devs, but not for a general audience.

'Immediate Global' or something similar?  What other 2 or 3 word caption
works to describe this well for end users researching Define, or
LoadModule, etc?

Re: [users@httpd] if directive not being respected in Apache 2.4.6

Posted by Jacob Champion <ch...@gmail.com>.
On 06/21/2017 08:45 AM, William A Rowe Jr wrote:
> Frankly I'd think scope should be defined as Global only,
> even though it won't error out in these other cases. For
> trunk, it would be good to lock this down and eliminate
> the legacy 'support' of Define in sections.

+1.

Very long-term, I think it would be good for all EXEC_ON_READ directives 
to be distinguished by the config syntax itself. Similar to #include and 
#define in C. I've been tinkering around with that a little in my spare 
cycles.

--Jacob

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] if directive not being respected in Apache 2.4.6

Posted by Eric Covener <co...@gmail.com>.
On Wed, Jun 21, 2017 at 11:45 AM, William A Rowe Jr <wr...@rowe-clan.net> wrote:
>> It is not currently documented or rejected, but "Define" can't be
>> wrapped in any of the normal configuration sections (only ifdefine,
>> ifmodule, etc. can wrap it)
>> It is processed at startup only, not during request procesing.
>
> Actually, it is documented, see last para;
>
> http://httpd.apache.org/docs/2.4/mod/core.html#define
>
> Frankly I'd think scope should be defined as Global only,
> even though it won't error out in these other cases. For
> trunk, it would be good to lock this down and eliminate
> the legacy 'support' of Define in sections.

You're right, I skimmed and missed it. Maybe it could use some kind of
note/warning box around it.

-- 
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org


Re: [users@httpd] if directive not being respected in Apache 2.4.6

Posted by Eric Covener <co...@gmail.com>.
On Wed, Jun 21, 2017 at 11:45 AM, William A Rowe Jr <wr...@rowe-clan.net> wrote:
>> It is not currently documented or rejected, but "Define" can't be
>> wrapped in any of the normal configuration sections (only ifdefine,
>> ifmodule, etc. can wrap it)
>> It is processed at startup only, not during request procesing.
>
> Actually, it is documented, see last para;
>
> http://httpd.apache.org/docs/2.4/mod/core.html#define
>
> Frankly I'd think scope should be defined as Global only,
> even though it won't error out in these other cases. For
> trunk, it would be good to lock this down and eliminate
> the legacy 'support' of Define in sections.

You're right, I skimmed and missed it. Maybe it could use some kind of
note/warning box around it.

-- 
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] if directive not being respected in Apache 2.4.6

Posted by William A Rowe Jr <wr...@rowe-clan.net>.
On Wed, Jun 21, 2017 at 10:39 AM, Eric Covener <co...@gmail.com> wrote:
> On Fri, Jun 9, 2017 at 12:36 PM, Day, Chuck <ch...@medtronic.com> wrote:
>>        Define locale1 fr-FR
>
> It is not currently documented or rejected, but "Define" can't be
> wrapped in any of the normal configuration sections (only ifdefine,
> ifmodule, etc. can wrap it)
> It is processed at startup only, not during request procesing.

Actually, it is documented, see last para;

http://httpd.apache.org/docs/2.4/mod/core.html#define

Frankly I'd think scope should be defined as Global only,
even though it won't error out in these other cases. For
trunk, it would be good to lock this down and eliminate
the legacy 'support' of Define in sections.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] if directive not being respected in Apache 2.4.6

Posted by William A Rowe Jr <wr...@rowe-clan.net>.
On Wed, Jun 21, 2017 at 10:39 AM, Eric Covener <co...@gmail.com> wrote:
> On Fri, Jun 9, 2017 at 12:36 PM, Day, Chuck <ch...@medtronic.com> wrote:
>>        Define locale1 fr-FR
>
> It is not currently documented or rejected, but "Define" can't be
> wrapped in any of the normal configuration sections (only ifdefine,
> ifmodule, etc. can wrap it)
> It is processed at startup only, not during request procesing.

Actually, it is documented, see last para;

http://httpd.apache.org/docs/2.4/mod/core.html#define

Frankly I'd think scope should be defined as Global only,
even though it won't error out in these other cases. For
trunk, it would be good to lock this down and eliminate
the legacy 'support' of Define in sections.

---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org