Embed the Power of mruby into NGINX
$ git clone git://github.com/Lax/ngx_http_mrb_hello_module.git
$ cd ngx_http_mrb_hello_module
$ git submodule init
$ git submodule update
$ cd mruby && make && cd -
$ git clone git://github.com/nginx/nginx.git
$ cd nginx
$ ./configure --add-module=/path/to/ngx_http_mrb_hello_module
worker_processes 1;
events {
worker_connections 1024;
}
http {
server {
listen 8080;
server_name localhost;
location / {
hello;
}
}
}
curl http://127.0.0.1:8080