Skip to content
This repository was archived by the owner on Jul 18, 2020. It is now read-only.

lindsayevans/nginx-json-status-module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

Nginx json_status module
A version of the Nginx HTTP stub status module that outputs in JSON format

WARNING:
This code WILL eat your cat, crash your server and send your bank details to random Nigerian email addresses. Run at your own risk.

Compiling into Nginx:
./configure --add-module=/path/to/nginx-json-status-module

Configuration:
In your nginx.conf:

  location /nginx_status.js {
    json_status         on;
    json_status_type    text/javascript; # Default application/json
    access_log          off;
  }


Example output - /nginx_status.js:
{active:1,accepts:1,handled:1,requests:5,reading:0,writing:1,waiting:0}

Callback support - /nginx_status.js?callback=do_funky_stuff:
do_funky_stuff({active:1,accepts:1,handled:1,requests:5,reading:0,writing:1,waiting:0});

About

A version of the Nginx HTTP stub status module that outputs in JSON format

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages