Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/yano3/http-mruby-info
- Owner: yano3
- Created: 2016-10-31T06:18:20.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-10-31T13:30:38.000Z (about 8 years ago)
- Last Synced: 2023-04-12T11:53:13.059Z (over 1 year ago)
- Topics: mod-mruby, ngx-mruby
- Language: Ruby
- Size: 1000 Bytes
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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"
}
```