Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试将 Apachemod_proxy与AJP后端和 ajp-wsgi 应用程序服务器一起使用,但它似乎没有将SetEnv变量发送到应用程序服务器。
mod_proxy
AJP
SetEnv
配置片段:
<Location /script> ProxyPass ajp://localhost:8009/script SetEnv FOO "barbobot" </Location>
如何将环境变量从 Apache 配置传递到我的应用服务器?
诀窍是在环境变量前面加上AJP_,如
AJP_
<Location /script> ProxyPass ajp://localhost:8009/script SetEnv AJP_FOO "barbobot" </Location>
见http://marc.info/?l=apache-httpd-dev&m=122059722411298&w=2