This is an update from a previous article about passenger 5.0.28.
These are the steps I used to setup for 5.1.0 they have changed a bit:
1. Copy the passenger’s ngnix config
Do this in the root directory of your Rails application.
cp $(passenger-config about resourcesdir)/templates/standalone/config.erb config/passenger_config.erb