https://github.com/matsumoto-r/ngx_mruby
$ cd /usr/local/src
$ git clone https://github.com/mruby/mruby.git
$ cd mruby
$ make
$ cd /usr/local/src
$ git clone https://github.com/matsumoto-r/ngx_mruby.git
$ brew edit nginx
add --add-module=/usr/local/src/ngx_mruby as a configure option
$ brew install nginx
/var/www/hello.mrb:
Nginx.rputs(Time.now.to_s + " hello mruby world for nginx.")
location /mruby {
mrubyHandler /var/www/hello.mrb;
}
nginx を起動し、 http://localhost/mruby にアクセス。