Apache Environment Variables

165 views
Skip to first unread message

Stephen Bartholomew

unread,
May 7, 2008, 2:11:30 PM5/7/08
to Phusion Passenger Discussions
Hey All,

I'm having a similar issue to that outlined here:
http://groups.google.co.uk/group/phusion-passenger/browse_thread/thread/497d605834ff2e54/d6cd1e284352018b?hl=en&lnk=st&q=passenger+apache+environment+variables#d6cd1e284352018b

I'm trying to set an environment variable in my Apache conf that will
get picked up by my application using SetEnv. The reason for this is
that the application itself connects to different databases depending
on the host the application is accessed via.

The problem is that the environment variable doesn't appear to be
being passed down to Rails.

Now, before I get stuck into into a work-around or a patch, does
anyone know if this is currently possible?

I'd probably explain a couple of things before I get architecture
questions:
1. The app uses different databases because of the security policies
of the clients using the application
2. I cannot use the domains to determine the variable in an
initializer because the database is connected up *before* any requests
happen - of course, getting access to ServerName would help in this
instance

Any and all ideas welcome!

Cheers,

Steve

Hongli Lai

unread,
May 7, 2008, 5:49:49 PM5/7/08
to phusion-...@googlegroups.com

Please check my response on the bug tracker.

--
Phusion | The Computer Science Company

Web: http://www.phusion.nl/
E-mail: in...@phusion.nl
Chamber of commerce no: 08173483 (The Netherlands)

Hongli Lai

unread,
May 7, 2008, 6:10:02 PM5/7/08
to Phusion Passenger Discussions
On May 7, 11:49 pm, Hongli Lai <hon...@phusion.nl> wrote:
> Please check my response on the bug tracker.

Sorry, please ignore my message. I replied to the wrong email.
Reply all
Reply to author
Forward
0 new messages