diff options
author | Jim Jagielski <jim@apache.org> | 2007-10-31 13:19:54 +0100 |
---|---|---|
committer | Jim Jagielski <jim@apache.org> | 2007-10-31 13:19:54 +0100 |
commit | 809dd5e30bfb6c055cc0c175926bd915ae3663c8 (patch) | |
tree | 11a5fa0640c31bcfc9a69310a213047912adc96c /modules/generators/mod_status.c | |
parent | The function ap_time_process_request() needs to be declared appropriately if ... (diff) | |
download | apache2-809dd5e30bfb6c055cc0c175926bd915ae3663c8.tar.xz apache2-809dd5e30bfb6c055cc0c175926bd915ae3663c8.zip |
Add in SeeRequestTail directive, to handle the shortcoming
of only storing 63 bytes of the request, when the requests
are longer than that and only vary towards the end; eg:
GET /disk1/storage/apache/htdocs/images/image-store1/food/fruits/seeded/apples.jpg
GET /disk1/storage/apache/htdocs/images/image-store1/food/fruits/seeded/pears.jpg
GET /disk1/storage/apache/htdocs/images/image-store1/food/fruits/seeded/plums.jpg
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@590641 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/generators/mod_status.c')
-rw-r--r-- | modules/generators/mod_status.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/modules/generators/mod_status.c b/modules/generators/mod_status.c index 8e357c9845..f2649541b3 100644 --- a/modules/generators/mod_status.c +++ b/modules/generators/mod_status.c @@ -128,10 +128,24 @@ static const char *set_extended_status(cmd_parms *cmd, void *dummy, int arg) return NULL; } +static const char *set_reqtail(cmd_parms *cmd, void *dummy, int arg) +{ + const char *err = ap_check_cmd_context(cmd, GLOBAL_ONLY); + if (err != NULL) { + return err; + } + ap_mod_status_reqtail = arg; + return NULL; +} + + static const command_rec status_module_cmds[] = { AP_INIT_FLAG("ExtendedStatus", set_extended_status, NULL, RSRC_CONF, "\"On\" to enable extended status information, \"Off\" to disable"), + AP_INIT_FLAG("SeeRequestTail", set_reqtail, NULL, RSRC_CONF, + "For verbose requests, \"On\" to see the last 63 chars of the request, " + "\"Off\" (default) to see the first 63 in extended status display"), {NULL} }; |