我试图在.htaccess文件中的php_value语句中访问一个环境variables。
以下是一些示例用法:
php_value include_path“。:/ usr / lib / php:[b]%{My_Environment_Variable} [/ b]”
要么
php_value auto_prepend_file%{env:MY_BASE_PATH} /lib/classes/SomeClass.php
我可以在.htaccess中设置环境variables,如果这样做,它恰好是唯一的方法来做到这一点。 否则,能够引用设置在.htaccess之外的环境variables将是非常好的。