Installing a monitored Mongodb, Ruby 1.9, Nginx stack with Passenger on Ubuntu Linux

In the spirit of nosql, today I am going to show you how to install a Rails stack on Ubuntu using Mongodb, Nginx, Passenger, Ruby 1.9 and all nicely monitored using monit, my monitoring tool of choice (why don’t I use god I hear you ask? => monit = easy maintenance and less resource heavy).

We [...]

Nginx rewites to a static URL

We use Nginx here for load balancing and as our HTTP server.

We have just started a new company called Ruby50 and I needed to get NGinx to rewrite to a static holding URL until the website is ready to go live. This is how I did it.

server {
server_name ruby50.com;
[...]