Displaying 1 result from an estimated 1 matches for "ysarazin".
Did you mean:
sarazin
2006 Aug 04
0
Re: Passing env var from Apache to Mongrel
...r, if your env var is dynamicly set, you can try my way.
I use mod_rewrite to proxy to Mongrel. In your httpd.conf (you need mod_header)
RequestHeader set X_YOUR_ENV your_value
And in Rails access it by
request.env["HTTP_X_YOUR_ENV"]
Hope it helps,
Kevin
On 8/4/06, Yan Sarazin <ysarazin@greenlightmedia.ca> wrote:
> Hi Kevin,
>
> I found a thread you started regarding Passing an env variable from Apache
> to Mongrel using RequestHeader. I was able to pass a variable I created
> with a string, however I do not know how to put in the environment (for
> example SE...