Mongrel_cluster on FreeBSD

hello, im attempting a mongrel_cluster + nginx + rails.

i’ve just installed mongrel_cluster on my FreeBSD server, but there
are no rc.d startup scripts so im not sure what to do…

this is how i plan to set up my mongrel cluster:

cd /usr/home/rv/myapp

mongrel_rails cluster::configure -e production -p 5000 -N 3 -c
/usr/home/rv/myapp -a --user www --group www

mongrel_rails cluster::start

and this is my nginx.conf

user www www;

worker_processes 5;

events { worker_connections 1024; }

pid /var/run/;

http {

sendfile on;

upstream mongrel {





server {

listen 80;


root /usr/home/rv/myapp/public;

location / {

  proxy_set_header X-Real-IP $remote_addr;

  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

  proxy_set_header Host $http_host;

  proxy_redirect false;

  proxy_max_temp_file_size 0;

  if (-f $request_filename) {



  if (-f $request_filename/index.html) {

    rewrite (.*) $1/index.html break;


  if (-f $request_filename.html) {

    rewrite (.*) $1.html break;


  if (!-f $request_filename) {

    proxy_pass http://mongrel;




error_page 500 502 503 504 /500.html;

location = /500.html {

  root /usr/home/rv/myapp/public;




i found this tutorial through google, but where’s the actual script?

many thanks,

Turns out there’s a FreeBSD port which takes care of all this,


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs