Phusion Passenger users guide, Nginx version
Phusion Passenger supports arbitrary Ruby web applications that follow the Rack interface. Phusion Passenger assumes that Rack application directories have a certain layout. Suppose that you have a Rack application in /webapps/rackapp. Then that folder must contain at least three entries: * config.ru, a Rackup file for starting the Rack application. This file must contain the complete logic for initializing the application. * public/, a folder containing public static web assets, like images and stylesheets. * tmp/, used for restart.txt (our application restart mechanism). This will be explained in a following subsection. So /webapps/rackapp must, at minimum, look like this