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 2005/02/02 19:01:44 UTC
DO NOT REPLY [Bug 33366] New: -
Cannot include varying canned sequences of directives
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=33366>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=33366
Summary: Cannot include varying canned sequences of directives
Product: Apache httpd-2.0
Version: 2.1-HEAD
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P2
Component: Core
AssignedTo: bugs@httpd.apache.org
ReportedBy: vesely@tana.it
Various features require non-trivial sequences
of configuration directives to work correctly,
e.g. authorizations or rewrite rules.
Sometimes "Include" directive is handy. However,
for virtual hosts it is likely that some keyword
must be altered on a per host (or per directory)
basis. The solution is to use variables that one
assigns before including the file...
I'd propose to augment "Include"'s syntax to be
Include file-path|directory-path|'|' pipeline
for example:
Include |sed 's/@@KEYWORD@@/immediate_value/g' conf/generic.conf
where anything after the '|' is sent to a shell
-after chdir(ServerRoot)- whose output is then
parsed as a regular include file.
Cool? Should I submit a (tentative) patch of
ap_process_resource_config?
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org