You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2019/02/05 14:56:15 UTC
[Bug 63146] New: Directive Define not work correct inside
https://bz.apache.org/bugzilla/show_bug.cgi?id=63146
Bug ID: 63146
Summary: Directive Define not work correct inside <If> <ElseIf>
<Else>
Product: Apache httpd-2
Version: 2.4.37
Hardware: PC
OS: Mac OS X 10.1
Status: NEW
Severity: normal
Priority: P2
Component: Core
Assignee: bugs@httpd.apache.org
Reporter: roskoshinsky@gmail.com
Target Milestone: ---
Define Directive not work correct inside <if> <ElseIf> <Else>. In this sample
the sSection will be "section2", ie even if -d is equal
"/www/section1/%{HTTP_HOST}/www". Always triggerd the last Define Directive
from the list.
…
<If "-d '/www/section1/%{HTTP_HOST}/www'">
Define sSection section1
</If>
<If "-d '/www/section2/%{HTTP_HOST}/www'">
Define sSection section2
</If>
UseCanonicalName Off
VirtualDocumentRoot /www/${sSection}/%0/www
…
This example is equivalent to
…
Define sSection section1
Define sSection section2
UseCanonicalName Off
VirtualDocumentRoot /www/${sSection}/%0/www
…
--
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 63146] Directive Define not work correct inside
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63146
Eric Covener <co...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|Core |Documentation
Assignee|bugs@httpd.apache.org |docs@httpd.apache.org
--- Comment #1 from Eric Covener <co...@gmail.com> ---
The stanza below in the docs needs to be expanded. Define's are fundamentally
global, not per-request, so you can't use any of the request processing
directives to set or unset them,.
Virtual Host scope and pitfalls
While this directive is supported in virtual host context, the changes it makes
are visible to any later configuration directives, beyond any enclosing virtual
host.
--
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