Beautify Apache server-status page

Apache HTTP server can have mod_status enabled and can

Від 08.04.2016. Дивіться остання версія.

Автор
Denilson Sá Maia
Рейтинги
0 0 0
Версія
1.3
Створено
08.04.2016
Оновлено
08.04.2016
Size
24,6 кБ
Ліцензія
Public domain
Відноситься до

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.