Beautify Apache server-status page

Apache HTTP server can have mod_status enabled and can

Version vom 08.04.2016. Aktuellste Version

Autor
Denilson Sá Maia
Bewertungen
0 0 0
Version
1.3
Erstellt am
08.04.2016
Letzte Aktualisierung
08.04.2016
Größe
24,6 KB
Lizenz
Public domain
Wird angewandt auf

Apache HTTP server can have mod_status enabled and can display some server status via HTTP/HTML. However, the page sent to browser is a bit raw, completely unstyled, and hard to read. This script tries to make that page much prettier and more readable. It has been tested with Apache versions 2.0.55 until 2.2.21 and should work on most versions, unless the generated HTML changes, which will degrade gradually the script.

Note: it seems the server-status output might have changed in 2.3, this means this script is slightly broken in that version, but will degrade gracefully anyway. Whenever the new version gets "stable", I'll update this script.

History/Changelog:

  • 2011-10-20 - Fixed bugs introduced by SortTable code (and that means I've removed browser-sniffing and IE workaround, and also moved forEach to the top, instead of the bottom). Also updated the alternating row style to use CSS3 :nth-child() selector, instead of old code using plain JavaScript.
  • 2011-10-18 - Added Stuart Langridge's SortTable script, making the main server-status table sortable.
  • 2010-01-30 - This script was added to this site.
  • 2006-04-23 - This script was born.