On a Jamroom Premium Hosted Server: How to Set environment variables via: .htaccess
--
Goal: have Apache set environment variables for use in our Smarty Templates, via a .htaccess file, using SetEnv. We assume these variables must start with 'HTTP_' for security purposes.
--
Examples:
--
SetEnv HTTP_MY_VAR "my value"
SetEnv HTTP_MY_VAR myValue
Then use $_SERVER to fetch it from custom Module or somehow from Smarty Template.
$_SERVER['HTTP_MY_VAR']
--
FYI: On Azure - we can set these directly via Azure App Control Panel.
--
On a Jamroom Premium Hosted Server: How to Set Server Level environment variables, that can be accessed from any of our multiple JR sites?
updated by @softdesigns: 07/09/17 02:06:29PM