Is Apache ReverseProxy to Passenger Standalone an acceptable production deployment?

Posted by davetron5000 on Server Fault See other posts from Server Fault or by davetron5000
Published on 2011-10-10T17:36:37Z Indexed on 2011/11/16 17:56 UTC
Read the original article Hit count: 210

I have the need to deploy Rails 3 apps, using RVM and gemsets, and am expecting “public” traffic (i.e. this is not an internal-only app). I also must use Apache as the public interface to my app.

I understand that Passenger Standalone can help accomplish the rails/RVM end, and I have successfully set it up in my development environment.

My question is how viable this setup is for a production deployment. Is deploying via Apache configured to ReverseProxy to my passenger-powered Rails app going to create problems? Since I'm designing the production deployment now, I want to understand if I should spend the additional time to set up Passenger connected to Apache and have that Passenger communicate with Passenger Standalone instance running my Rails app.

So, I'm looking for one of I guess three answers:

  • Apache Reverse Proxy to Passenger Standalone will be generally fine
  • You should not use the Apache/Passenger Standalone configuration, but set up Passenger on the Apache side as well
  • Your entire setup is just Wrong, please RTFM (and include link to "FM")

© Server Fault or respective owner

Related posts about apache2

Related posts about ruby-on-rails