Project

General

Profile

Actions

Feature #1609

closed

improved mod_status

Added by Anonymous over 16 years ago. Updated over 8 years ago.

Status:
Obsolete
Priority:
Low
Category:
mod_status
Target version:
ASK QUESTIONS IN Forums:

Description

enhanced mod_status: now the percent of the data transfer is shown, as well as the file sizes in MB or KB.
The time is shown in seconds or minutes.
Added two new columns: Read Speed and Write Speed.

the patch is for the version "lighttpd-1.5.0-r1992"

cd src
patch mod_status.c < mod_status.patch

-- thomas{AT}thomasfischer{DOT}biz


Files

mod_status.patch (3.32 KB) mod_status.patch improved mod_status -- thomas{AT}thomasfischer{DOT}biz Anonymous, 2008-03-22 05:16
mod_status.2.patch (3.32 KB) mod_status.2.patch improved mod_status -- thomas{AT}thomasfischer{DOT}biz Anonymous, 2008-03-22 05:17
mod_status.txt (3.32 KB) mod_status.txt improved mod_status -- thomas{AT}thomasfischer{DOT}biz Anonymous, 2008-03-22 05:17
mod_status2.patch.txt (7.59 KB) mod_status2.patch.txt -- thomas{AT}thomasfischer{DOT}biz Anonymous, 2008-03-22 10:50
mod_status3.patch.txt (8 KB) mod_status3.patch.txt -- thomas{AT}thomasfischer{DOT}biz Anonymous, 2008-03-22 11:06
Actions #1

Updated by Anonymous over 16 years ago

added password protection.
added simple query parser (taken from another mod)

if you specify status.password in the configuration, then you need to pass an extra argument (pass=xxx) to the page, or it will result in 403.

for example:
status.status-url = "/server-status"
status.password = "43EF943407D6D8E88D66C83BD10F6"

these URLs are valid:
/server-status?pass=43EF943407D6D8E88D66C83BD10F6&auto
/server-status?pass=43EF943407D6D8E88D66C83BD10F6
(or auto argument in front)

patch mod_status2.patch.txt contains also my previous patch above

-- thomas{AT}thomasfischer{DOT}biz

Actions #2

Updated by Anonymous over 16 years ago

added Connection count to text version.

patch: mod_status3.patch.txt (contains all patches from above also)

-- thomas{AT}thomasfischer{DOT}biz

Actions #3

Updated by admin over 16 years ago

added password protection.

Why not use mod_auth?

added simple query parser (taken from another mod)

Copy/paste I guess? Code duplication should be avoided.

Actions #4

Updated by Anonymous over 16 years ago

i cleaned the patch up, improved its output(progress bar) and removed all password stuff again. The patch is for r1992 (this version:
http://blog.lighttpd.net/articles/2007/09/06/pre-release-lighttpd-1-5-0-r1992)

attached the patch (mod_status_2.patch) as well as the patched .c file (mod_status.c)

how it will look like:
http://img245.imageshack.us/img245/7900/imprej5.png

-- thomas {AT} thomasfischer {D0T} biz

Actions #5

Updated by Anonymous over 16 years ago

Replying to thomas {AT} thomasfischer {D0T} biz:

i cleaned the patch up, improved its output(progress bar) and removed all password stuff again. The patch is for r1992 (this version:
http://blog.lighttpd.net/articles/2007/09/06/pre-release-lighttpd-1-5-0-r1992)

attached the patch (mod_status_2.patch) as well as the patched .c file (mod_status.c)

how it will look like:
http://img245.imageshack.us/img245/7900/imprej5.png

since my ISP is blacklisted here (stupid idea btw) i cannot attach the files, so i have pasted them here:

patch: http://pastebin.rigsofrods.com/f3b864309
mod_status.c: http://pastebin.rigsofrods.com/f71d16b1d

Actions #6

Updated by admin over 16 years ago

since my ISP is blacklisted here

I think you just need to login.

Actions #7

Updated by Anonymous over 16 years ago

Replying to Olaf van der Spek:

since my ISP is blacklisted here

I think you just need to login.

it says:
"Submission rejected as potential spam (IP 87.xxx.206.xxx blacklisted by sc.surbl.org, Content contained blacklisted patterns)"

Actions #8

Updated by admin over 16 years ago

You might still want to try to login.

Actions #9

Updated by stbuehler over 16 years ago

Everybody is blacklisted by sc.surbl.org, but i assure you that's not blocking your post (one ip blacklist gives karma -1, and you need at least -2 to be able to post iirc).

Blacklisted patterns is what hit you, and as Olaf van der Spek already told you: it may help you if you login.

Actions #10

Updated by gstrauss over 8 years ago

  • Description updated (diff)
  • Assignee deleted (jan)
  • Missing in 1.5.x set to Yes
Actions #11

Updated by gstrauss over 8 years ago

  • Status changed from New to Obsolete
Actions

Also available in: Atom