Norm,

Please see my answer to Hassan.

I think I'm doing something similar to that ancient version.

I can report that in my operating environment, there is no environment 
variable named SERVER_SOFTWARE.

Ralph

On Tuesday, July 25, 2017 at 3:49:47 PM UTC-6, Norm wrote:
>
> 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 <ral...@dos32.com 
> <javascript:>> 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 rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/61a3094c-3bd1-4b0b-b171-6651791dbdf3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to