Beautify Apache server-status page

Apache HTTP server can have mod_status enabled and can

目前為 2016-04-08 提交的版本,檢視 最新版本

作者
Denilson Sá Maia
評價
0 0 0
版本
1.3
建立日期
2016-04-08
更新日期
2016-04-08
尺寸
24.6 KB
授權條款
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.