Bug 47220 - Access to environment variables
Summary: Access to environment variables
Status: REOPENED
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: mod_substitute (show other bugs)
Version: 2.2.17
Hardware: All All
: P2 enhancement (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on: 51258
Blocks:
  Show dependency tree
 
Reported: 2009-05-19 06:44 UTC by Marc Stern
Modified: 2014-03-27 19:55 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marc Stern 2009-05-19 06:44:59 UTC
It would be great to have access to environment variables, like
 Substitute s/%{HTTP_HOST}/www.mycompany.com/in
or
 Substitute s/www.mycompany.com/%{HTTP_HOST}/n
Comment 1 horowity@checkpoint.com 2011-05-24 13:28:11 UTC

*** This bug has been marked as a duplicate of bug 51258 ***
Comment 2 William A. Rowe Jr. 2011-05-24 16:44:38 UTC
This was not a duplicate.  You may indicate it is 'resolved by' your contribution,
but this ticket indicated a specific request with a specific scope.
Comment 3 Chris 2014-03-27 19:55:50 UTC
I've tried the patch specifically to substitute in environment variables (%{env:var_name}) but it seems to only allow access to local variables created by the use of 'define' (${var_name}).

Please could you confirm how your code is to be used in this manner?