Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yano3/http-mruby-info

Show versions of web server and mruby extension using mruby code.
https://github.com/yano3/http-mruby-info

mod-mruby ngx-mruby

Last synced: 30 days ago
JSON representation

Show versions of web server and mruby extension using mruby code.

Awesome Lists containing this project

README

        

# http-mruby-info

Show versions of web server and mruby extension using mruby code.

## Configuration

### Nginx with ngx\_mruby

```nginx
location /info {
mruby_content_handler /path/to/nginx/conf.d/mruby_info/mruby_info.rb cache;
}
```

```shell
$ curl -s http://localhost/info | jq
{
"server_name": "NGINX",
"server_version": "1.11.4",
"mruby_version": "1.2.0",
"module_name": "ngx_mruby",
"module_version": "1.18.3"
}
```

### Apache with mod\_mruby

```apache

mrubyHandlerMiddle /path/to/httpd/conf.d/mruby_info/mruby_info.rb cache

```

```shell
$ curl -s http://localhost/info | jq
{
"server_name": "Apache",
"server_version": "Apache/2.4.7 (Ubuntu)",
"mruby_version": "1.2.0",
"module_name": "mod_mruby",
"module_version": "1.13.11"
}
```