This section describes the installation of Nginx and Passenger on Ubuntu.
1. Install nginx
2. Install Passenger packages
3 . Enable the Passenger Nginx module
4 . Point Passenger to the correct version of Ruby
Change the passenger_ruby directive to match the following:
5 . Start nginx
Confirm that NGINX is running by visiting your server’s public IP address in your browser. You should be greeted with the “Welcome to NGINX” message.
6 . Add an nginx server for your application
The contents should resemble this:
Replace username with the name of your user and
change myapp to the name of your app. You will use
this same folder later on when you define your Capistrano deploy_to folder.
Save the file.
7 . Reload NGINX to load the new server files.
That’s it! Thanks for reading, see you in the next one!