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
*** This bug has been marked as a duplicate of bug 51258 ***
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.
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?