Nginx with Rails

downloaded from here
documentation here
If you want to try different solution check it haproxy compiled with: ./configure --sbin-path=/usr/local/sbin --with-http_ssl_module --user=mongrel make make install

with fair balancing

Fair load balancing for nginx from here

base configuration from here
more and my favorite here is good overview of example config
init script from here is alternative for the nginx

I have one mongrel cluster which is serving multiple rails applications. In my example I host and in one mongrel cluster. here are the conf files:

The virtual host file