On an ancient version of Rails (2.3) ENV["SERVER_SOFTWARE"] contains "Apache" when I am running with Passenger. Do not know about later versions.

Norm

On 07/25/2017 12:00 PM, Hassan Schroeder wrote:
On Tue, Jul 25, 2017 at 11:40 AM, Ralph Shnelvar <[email protected]> wrote:
My question: Is there a way for Rails to know if it is running under Apache
or under Webrick?

Background:
I run my Rails website in two environments

1) Under webrick
2) Under Apache
? "environment" usually refers to one of "development", "test", or
"production".

Also, what does "under Apache" mean? Using Passenger? Or as
a proxy? If the latter, something has to be doing the actual serving
(i.e. puma, unicorn, thin, webrick (not in production!)).

Clarification?


--
You received this message because you are subscribed to the Google Groups "Ruby on 
Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/1ab90d46-2d40-4cfc-338c-a202f707668a%40earthlink.net.
For more options, visit https://groups.google.com/d/optout.

Reply via email to