title: Setting up multiple rails apps using nginx and Puma
body: <p>I have a web server serving multiple Rails applications using a combination of nginx and Passenger. This is pretty straightforward, because the Passenger install sets-up pretty much everything you need to connect to nginx.</p>
  
  <p>I found "<a href="http://nicolas-brousse.github.io/ubuntu-install-and-tips/pages/installation/rails-puma/" rel="nofollow">Rails app with Puma</a>" that seems to explain how to set up nginx and Puma together.  How would this configuration need to be modified in order to serve a second Rails application on the same server?</p>
  
  <p>Also, this guide doesn't say anything about restarting the application automatically if there is a system reboot or some other issue. Is there a way to do that? The nginx + Passenger combo seems to do it by default.</p>