Mailing List Archive

[Bug 38019] SetEnv can't be used before SetEnvIf
https://bz.apache.org/bugzilla/show_bug.cgi?id=38019

--- Comment #6 from Steven <sfritzsche@mediarox.de> ---
It remains annoying that the instinctive configuration

SetEnv VAR_ALPHA mydefault
SetEnvIf Host example\.com VAR_ALPHA=notmydefault

does not work as expected. It steals time from many developers until you notice
it.

And the sentence "It's too disruptive to change the order." suggests that
something would have to be fundamentally revised here.

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 38019] SetEnv can't be used before SetEnvIf [ In reply to ]
https://bz.apache.org/bugzilla/show_bug.cgi?id=38019

--- Comment #7 from Christophe JAILLET <christophe.jaillet@wanadoo.fr> ---
(In reply to Steven from comment #6)
> It remains annoying that the instinctive configuration does not work as
> expected.

Maybe, but the behaviour is documented.
Should the wording be improved or should something be explained elsewhere,
could you please make a proposal?


Also, does the following (untested) achieve what you need?

SetEnvIf Host .* VAR_ALPHA=mydefault
SetEnvIf Host example\.com VAR_ALPHA=notmydefault

If yes, maybe it could be added as an example to the doc.

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org