Bug 47220

Summary: Access to environment variables
Product: Apache httpd-2 Reporter: Marc Stern <marc.stern>
Component: mod_substituteAssignee: Apache HTTPD Bugs Mailing List <bugs>
Status: REOPENED ---    
Severity: enhancement    
Priority: P2    
Version: 2.2.17   
Target Milestone: ---   
Hardware: All   
OS: All   
Bug Depends on: 51258    
Bug Blocks:    

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?