Skip to content

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

Notifications You must be signed in to change notification settings

yano3/http-mruby-info

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

http-mruby-info

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

Configuration

Nginx with ngx_mruby

location /info {
  mruby_content_handler /path/to/nginx/conf.d/mruby_info/mruby_info.rb cache;
}
$ 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

<Location /info>
    mrubyHandlerMiddle /path/to/httpd/conf.d/mruby_info/mruby_info.rb cache
</Location>
$ 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"
}

About

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

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages