开发者

Apache2 PassEnv on Ubuntu

I want to pass a system-wide variable to Apache so I can pass it to executed scripts using PassEnv. Basically a script executed Apache executes a shell script, that shell script开发者_如何学编程 wont run without the variable being set.

But Ubuntu devs did this in the startup script:

ENV="env -i LANG=C PATH=/usr/local/bin:/usr/bin:/bin"

Resulting in variables from /etc/environment to be discarded. Can I fix this without modifying the startup script?


Turns out you can pass along vars in /etc/apache2/envvars. Still sucks though.

Nope. The value stays empty.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜