4 `mod_lua` version of the Apache httpd's mod_status using dynamic charts
7 This script is an extended version of the known mod_status statistics page for httpd.
8 It uses the simple Quokka Chart API to visualize many of the elements that are sometimes hard
9 to properly diagnose using plain text information.
11 Take a look at https://www.apache.org/server-status to see how it works.
14 * Apache httpd 2.4.6 or higher
15 * mod_lua (with either Lua 5.1, 5.2 or LuaJIT)
16 * mod_status loaded (for enabling traffic statistics)
19 First, install mod_lua (you can enable this during configure time with --enable-lua)
21 ### Installing as a handler:
22 To install it as a handler, add the following to your httpd.conf in the appropriate VirtualHost:
24 LuaMapHandler ^/server-status$ /path/to/server-status.lua
26 ### Installing as a web app:
27 To install as a plain web-app, enable .lua scripts to be handled by mod_lua, by adding the following
28 to your appropriate VirtualHost configuration:
30 AddHandler lua-script .lua
32 Then just put the `.lua` script somewhere in your document root and visit the page.
35 There are a few options inside the Lua script that can be set to `true` or `false`:
37 - `show_warning`: Whether or not to show a notice that this page is there on purpose.
38 - `redact_ips`: Whether or not to replace the last few bits of every IP with 'x.x'
39 - `show_modules`: Whether to show the list of loaded modules or not
40 - `show_threads`: Whether to show thread details or not.